OPC Studio User's Guide and Reference
FromInt64 Method (UAStatusCode)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAStatusCode Class : FromInt64 Method
The numerical (integer) value of the status code.
Converts an internal value to a status code.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromInt64( _
   ByVal internalValue As Long _
) As UAStatusCode
'Usage
 
Dim internalValue As Long
Dim value As UAStatusCode
 
value = UAStatusCode.FromInt64(internalValue)
[NotNull()]
public static UAStatusCode FromInt64( 
   long internalValue
)
[NotNull()]
public:
static UAStatusCode^ FromInt64( 
   int64 internalValue
) 

Parameters

internalValue
The numerical (integer) value of the status code.

Return Value

Returns the status code with specified internal value.

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