QuickOPC User's Guide and Reference
StatusCode Property (_UAServiceResult)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UAServiceResult Interface : StatusCode Property
The status code associated with the service result.
Syntax
'Declaration
 
<NotNullAttribute()>
Property StatusCode As UAStatusCode
'Usage
 
Dim instance As _UAServiceResult
Dim value As UAStatusCode
 
instance.StatusCode = value
 
value = instance.StatusCode
[NotNull()]
UAStatusCode StatusCode {get; set;}
[NotNull()]
property UAStatusCode^ StatusCode {
   UAStatusCode^ get();
   void set (    UAStatusCode^ value);
}
Remarks

There is an implicit conversion from OpcLabs.EasyOpc.UA.UAServiceResult to System.Int32, which takes the code bits of the OpcLabs.EasyOpc.UA.UAServiceResult.StatusCode. You can use this to make a comparison of OpcLabs.EasyOpc.UA.UAServiceResult with some value from the OpcLabs.EasyOpc.UA.UACodeBits class easily, without even having to access the OpcLabs.EasyOpc.UA.UAServiceResult.StatusCode explicitly.

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