OPC Studio User's Guide and Reference
ServiceTargetSite Property (UAServiceException)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceException Class : ServiceTargetSite Property
Gets the method that throws the originating exception.
Syntax
'Declaration
 
<DefaultValueAttribute("")>
Public ReadOnly Property ServiceTargetSite As MethodBase
'Usage
 
Dim instance As UAServiceException
Dim value As MethodBase
 
instance.ServiceTargetSite = value
 
value = instance.ServiceTargetSite
[DefaultValue("")]
public MethodBase ServiceTargetSite {get;}
[DefaultValue("")]
public:
property MethodBase^ ServiceTargetSite {
   MethodBase^ get();
}

Property Value

The System.Reflection.MethodBase that threw the originating exception.
Remarks

This property is introduced because the System.Exception.TargetSite property cannot be set or overriden.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also