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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceResult Class : StatusCode Property
The status code associated with the service result.
Syntax
'Declaration
 
Public Property StatusCode As UAStatusCode
'Usage
 
Dim instance As UAServiceResult
Dim value As UAStatusCode
 
instance.StatusCode = value
 
value = instance.StatusCode
public UAStatusCode StatusCode {get; set;}
public:
property UAStatusCode^ StatusCode {
   UAStatusCode^ get();
   void set (    UAStatusCode^ value);
}
Remarks

There is an implicit conversion from UAServiceResult to System.Int32, which takes the code bits of the StatusCode. You can use this to make a comparison of UAServiceResult with some value from the UACodeBits class easily, without even having to access the 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