OPC Studio User's Guide and Reference
ToInt32 Method (UAServiceResult)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceResult Class : ToInt32 Method
Converts the service results to an integer, by taking the code bits of the status code.
Syntax
'Declaration
 
Public Function ToInt32() As Integer
'Usage
 
Dim instance As UAServiceResult
Dim value As Integer
 
value = instance.ToInt32()
public int ToInt32()
public:
int ToInt32(); 

Return Value

Returns the code bits of the service result's status code.
Remarks

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

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