OPC Studio User's Guide and Reference
Implicit Type Conversion(UAStatusCode,UACodeBits) Operator



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAStatusCode Class > Implicit Type Conversion Operator : Implicit Type Conversion(UAStatusCode,UACodeBits) Operator
The code bits to be converted.
Converts code bits to a status code.
Syntax
'Declaration
 
<NotNullAttribute()>
Overloads Public Operator Widening CType( _
   ByVal codeBits As UACodeBits _
) As UAStatusCode
'Usage
 
[NotNull()]
public UAStatusCode operator implicit( 
   UACodeBits codeBits
)
[NotNull()]
public:
operator UAStatusCode^ ( 
   UACodeBits codeBits
)

Parameters

codeBits
The code bits to be converted.

Return Value

Returns the status code with specified code bits.

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

Remarks

This operator is equivalent to FromUASeverity.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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