OPC Studio User's Guide and Reference
FromUACodeBits Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAStatusCode Class : FromUACodeBits Method
The code bits of the status code.

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

Converts the code bits to a status code.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromUACodeBits( _
   ByVal codeBits As UACodeBits _
) As UAStatusCode
'Usage
 
Dim codeBits As UACodeBits
Dim value As UAStatusCode
 
value = UAStatusCode.FromUACodeBits(codeBits)
[NotNull()]
public static UAStatusCode FromUACodeBits( 
   UACodeBits codeBits
)
[NotNull()]
public:
static UAStatusCode^ FromUACodeBits( 
   UACodeBits codeBits
) 

Parameters

codeBits
The code bits of the status code.

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

Return Value

Returns the status code with specified code bits, and flags bits equal to 0.

This method never returns null (Nothing in Visual Basic).

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