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
Converts the service results to an integer, by taking the code bits of the status code.
Syntax
'Declaration
 
Public Operator Widening CType( _
   ByVal serviceResult As UAServiceResult _
) As Integer
'Usage
 
public int operator implicit( 
   UAServiceResult serviceResult
)
public:
operator int ( 
   UAServiceResult^ serviceResult
)

Parameters

serviceResult

Return Value

If the serviceResult is not null, returns the code bits of the service result's status code. Otherwise, returns 0.
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