QuickOPC User's Guide and Reference
UAServiceException Constructor(SerializationInfo,StreamingContext)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAServiceException Class > UAServiceException Constructor : UAServiceException Constructor(SerializationInfo,StreamingContext)
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Initializes a new instance of the class with serialized data.
Syntax
'Declaration
 
Protected Function New( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
)
'Usage
 
Dim info As SerializationInfo
Dim context As StreamingContext
 
Dim instance As New UAServiceException(info, context)
protected UAServiceException( 
   SerializationInfo info,
   StreamingContext context
)
protected:
UAServiceException( 
   SerializationInfo^ info,
   StreamingContext context
)

Parameters

info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
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