OPC Studio User's Guide and Reference
ServiceResult Property (_UAServiceException)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UAServiceException Interface : ServiceResult Property
The service result (combines the status code and diagnostic information) associated with the exception.
Syntax
'Declaration
 
<NotNullAttribute()>
ReadOnly Property ServiceResult As UAServiceResult
'Usage
 
Dim instance As _UAServiceException
Dim value As UAServiceResult
 
value = instance.ServiceResult
[NotNull()]
UAServiceResult ServiceResult {get;}
[NotNull()]
property UAServiceResult^ ServiceResult {
   UAServiceResult^ get();
}
Remarks

This property has the necessary information if you want to test for a specific OPC UA error. In most cases, you can use the fact that there is an implicit conversion from OpcLabs.EasyOpc.UA.UAServiceResult to System.Int32, and make a comparison of the ServiceResult with some value from the OpcLabs.EasyOpc.UA.UACodeBits class easily.

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