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