OPC Studio User's Guide and Reference
UAStatusCode Constructor(UACodeBits,Int32)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAStatusCode Class > UAStatusCode Constructor : UAStatusCode Constructor(UACodeBits,Int32)
The code bits of the status code.

Valid values of this parameter are in the range from Good (UACodeBits.Good) to 65535.

The flag bits of the status code.

Valid values of this parameter are in the range from 0 to 65535.

Initializes a new instance of the class, specifying the code bits and flag bits.
Syntax
'Declaration
 
Public Function New( _
   ByVal codeBits As UACodeBits, _
   ByVal flagBits As Integer _
)
'Usage
 
Dim codeBits As UACodeBits
Dim flagBits As Integer
 
Dim instance As New UAStatusCode(codeBits, flagBits)
public UAStatusCode( 
   UACodeBits codeBits,
   int flagBits
)
public:
UAStatusCode( 
   UACodeBits codeBits,
   int flagBits
)

Parameters

codeBits
The code bits of the status code.

Valid values of this parameter are in the range from Good (UACodeBits.Good) to 65535.

flagBits
The flag bits of the status code.

Valid values of this parameter are in the range from 0 to 65535.

Exceptions
ExceptionDescription

The value of an argument is outside the allowable range of values as defined by the invoked method.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

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