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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UACallServiceException Interface : ServiceTargetSite Property
Gets the method that throws the originating exception.
Syntax
'Declaration
 
<CanBeNullAttribute()>
ReadOnly Property ServiceTargetSite As MethodBase
'Usage
 
Dim instance As _UACallServiceException
Dim value As MethodBase
 
value = instance.ServiceTargetSite
[CanBeNull()]
MethodBase ServiceTargetSite {get;}
[CanBeNull()]
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.

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

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