OPC Studio User's Guide and Reference
Implicit Type Conversion Operator (UAServiceResult)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceResult Class : Implicit Type Conversion Operator

The value of this parameter can be null (Nothing in Visual Basic).

Takes the code bits of the status code.
Syntax
'Declaration
 
Public Operator Widening CType( _
   ByVal serviceResult As UAServiceResult _
) As UACodeBits
'Usage
 
public UACodeBits operator implicit( 
   UAServiceResult serviceResult
)

Parameters

serviceResult

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

If the serviceResult is not null, returns the code bits of the service result's status code. Otherwise, returns 0.
Remarks

For non-null inputs, this operator is equivalent to ToUACodeBits.

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