RegisteredServerException Constructor (SerializationInfo, StreamingContext)
Initializes an instance of the RegisteredServerException class with the specified serialized object data and contextual information.
Namespace: Microsoft.SqlServer.Management.RegisteredServers
Assembly: Microsoft.SqlServer.Management.RegisteredServers (in Microsoft.SqlServer.Management.RegisteredServers.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New RegisteredServerException(info, context)
protected RegisteredServerException(
SerializationInfo info,
StreamingContext context
)
protected:
RegisteredServerException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> RegisteredServerException
protected function RegisteredServerException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
- info
Type: System.Runtime.Serialization.SerializationInfo
A SerializationInfo object that holds the serialized object data about the exception being thrown.
- context
Type: System.Runtime.Serialization.StreamingContext
A StreamingContext object that contains contextual information about the source or destination.