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
 
Public ReadOnly Property ServiceTargetSite As MethodBase
'Usage
 
Dim instance As UAServiceException
Dim value As MethodBase
 
instance.ServiceTargetSite = value
 
value = instance.ServiceTargetSite
public MethodBase ServiceTargetSite {get;}
public:
property MethodBase^ ServiceTargetSite {
   MethodBase^ get();
}

Property Value

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

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

Remarks

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

The getter method of this property is pure, i.e. it does not have observable side effects.

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