SqlServerManagementException 建構函式 (SerializationInfo, StreamingContext)
初始化具有指定的序列化資訊和資料流內容之 SqlServerManagementException 類別的新執行個體。
命名空間: 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 SqlServerManagementException(info, context)
protected SqlServerManagementException(
SerializationInfo info,
StreamingContext context
)
protected:
SqlServerManagementException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> SqlServerManagementException
protected function SqlServerManagementException(
info : SerializationInfo,
context : StreamingContext
)
參數
- info
型別:SerializationInfo
SerializationInfo 系統物件值,指定與例外狀況相關聯的序列化資訊。
- context
型別:StreamingContext
StreamingContext 系統物件值,指定與例外狀況相關聯的資料流內容。
請參閱
參考
SqlServerManagementException 類別