OPC Studio User's Guide and Reference
UAServiceException Constructor(UAServiceResult,Exception)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceException Class > UAServiceException Constructor : UAServiceException Constructor(UAServiceResult,Exception)
Service result.

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

Inner exception.

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

Initializes a new instance of the class from a service result, a corresponding original exception message, and an inner exception.
Syntax
'Declaration
 
Protected Function New( _
   ByVal serviceResult As UAServiceResult, _
   ByVal innerException As Exception _
)
'Usage
 
Dim serviceResult As UAServiceResult
Dim innerException As Exception
 
Dim instance As New UAServiceException(serviceResult, innerException)
protected UAServiceException( 
   UAServiceResult serviceResult,
   Exception innerException
)
protected:
UAServiceException( 
   UAServiceResult^ serviceResult,
   Exception^ innerException
)

Parameters

serviceResult
Service result.

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

innerException
Inner exception.

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

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