Connectivity Software User's Guide and Reference
UAServiceResult Constructor(UAStatusCode,UAQualifiedName,UALocalizedText,String,UAServiceResult)



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceResult Class > UAServiceResult Constructor : UAServiceResult Constructor(UAStatusCode,UAQualifiedName,UALocalizedText,String,UAServiceResult)
The status code associated with the service result. Must not be null.

Because the UAStatusCode has implicit conversions from System.Int64 and UASeverity, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the internal status code value), or one of UASeverity enumeration members (representing the severity code) in place of this parameter, and the corresponding OPC UA status code will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UAStatusCode.FromInt64 or UAStatusCode.FromUASeverity static method instead.

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

The qualified name of the symbolic identifier associated with the status code. Must not be null.

Because the OpcLabs.EasyOpc.UA.AddressSpace.UAQualifiedName has an implicit conversion from System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the expanded text of the qualified name) in place of this parameter, and the corresponding OPC UA qualified name will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.AddressSpace.UAQualifiedName.UAQualifiedName Constructor(String) constructor instead.

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

The localized description for the service result, or null if not available.

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

Additional diagnostic/debugging information associated with the operation. Must not be null.

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

Nested error information, or null if there is no inner result.

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

Initializes a new instance of the class, specifying the status code, qualified symbolic ID, localized text, additional information, and inner result.
Syntax
'Declaration
 
Public Function New( _
   ByVal statusCode As UAStatusCode, _
   ByVal qualifiedSymbolicId As UAQualifiedName, _
   ByVal localizedText As UALocalizedText, _
   ByVal additionalInfo As String, _
   ByVal innerResult As UAServiceResult _
)
'Usage
 
Dim statusCode As UAStatusCode
Dim qualifiedSymbolicId As UAQualifiedName
Dim localizedText As UALocalizedText
Dim additionalInfo As String
Dim innerResult As UAServiceResult
 
Dim instance As New UAServiceResult(statusCode, qualifiedSymbolicId, localizedText, additionalInfo, innerResult)

Parameters

statusCode
The status code associated with the service result. Must not be null.

Because the UAStatusCode has implicit conversions from System.Int64 and UASeverity, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the internal status code value), or one of UASeverity enumeration members (representing the severity code) in place of this parameter, and the corresponding OPC UA status code will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UAStatusCode.FromInt64 or UAStatusCode.FromUASeverity static method instead.

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

qualifiedSymbolicId
The qualified name of the symbolic identifier associated with the status code. Must not be null.

Because the OpcLabs.EasyOpc.UA.AddressSpace.UAQualifiedName has an implicit conversion from System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the expanded text of the qualified name) in place of this parameter, and the corresponding OPC UA qualified name will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.AddressSpace.UAQualifiedName.UAQualifiedName Constructor(String) constructor instead.

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

localizedText
The localized description for the service result, or null if not available.

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

additionalInfo
Additional diagnostic/debugging information associated with the operation. Must not be null.

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

innerResult
Nested error information, or null if there is no inner result.

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

Remarks

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