ConnectionException 构造函数 (SerializationInfo, StreamingContext)
Initializes a new instance of the ConnectionException class with the specified serialization information and streaming context.
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
用法
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New ConnectionException(info, context)
protected ConnectionException(
SerializationInfo info,
StreamingContext context
)
protected:
ConnectionException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> ConnectionException
protected function ConnectionException(
info : SerializationInfo,
context : StreamingContext
)
参数
- info
类型:System.Runtime.Serialization.SerializationInfo
A SerializationInfo system object that specifies the serialization information for the exception.
- context
类型:System.Runtime.Serialization.StreamingContext
A StreamingContext system object that specifies the streaming context for the exception.