SqlTraceFailToLoadInstAPIAssemblyException 建構函式

定義

初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

多載

SqlTraceFailToLoadInstAPIAssemblyException()

初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

SqlTraceFailToLoadInstAPIAssemblyException(String)

使用指定的訊息初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

SqlTraceFailToLoadInstAPIAssemblyException(SerializationInfo, StreamingContext)

初始化具有指定的序列化資訊和指定的資料流內容之 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

SqlTraceFailToLoadInstAPIAssemblyException(String, Exception)

使用指定的訊息和內部例外狀況初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

SqlTraceFailToLoadInstAPIAssemblyException(Type, String)

使用指定的訊息來源和訊息,初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

SqlTraceFailToLoadInstAPIAssemblyException()

初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

public:
 SqlTraceFailToLoadInstAPIAssemblyException();
public SqlTraceFailToLoadInstAPIAssemblyException ();
Public Sub New ()

範例

處理 SMO 例外狀況

適用於

SqlTraceFailToLoadInstAPIAssemblyException(String)

使用指定的訊息初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(System::String ^ message);
public SqlTraceFailToLoadInstAPIAssemblyException (string message);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : string -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (message As String)

參數

message
String

String 值,該值指定與一般 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況相關聯的訊息。

範例

處理 SMO 例外狀況

適用於

SqlTraceFailToLoadInstAPIAssemblyException(SerializationInfo, StreamingContext)

初始化具有指定的序列化資訊和指定的資料流內容之 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

protected:
 SqlTraceFailToLoadInstAPIAssemblyException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SqlTraceFailToLoadInstAPIAssemblyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件值,指定 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況的序列化資訊。

context
StreamingContext

StreamingContext 物件值,指定 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況的資料流內容。

範例

處理 SMO 例外狀況

適用於

SqlTraceFailToLoadInstAPIAssemblyException(String, Exception)

使用指定的訊息和內部例外狀況初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(System::String ^ message, Exception ^ innerException);
public SqlTraceFailToLoadInstAPIAssemblyException (string message, Exception innerException);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : string * Exception -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (message As String, innerException As Exception)

參數

message
String

String 值,該值指定與一般 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況相關聯的訊息。

innerException
Exception

Exception 物件值,指定代表 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況的內部例外狀況。

範例

處理 SMO 例外狀況

適用於

SqlTraceFailToLoadInstAPIAssemblyException(Type, String)

使用指定的訊息來源和訊息,初始化 SqlTraceFailToLoadInstAPIAssemblyException 類別的新執行個體。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(Type ^ messageSource, System::String ^ messageID);
public SqlTraceFailToLoadInstAPIAssemblyException (Type messageSource, string messageID);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : Type * string -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (messageSource As Type, messageID As String)

參數

messageSource
Type

指定訊息來源的 Type 系統物件值。

messageID
String

String 值,該值指定與一般 SQL 追蹤 Fail to Load Inst API Assembly (無法載入 Inst API 組件) 例外狀況相關聯的訊息。

範例

處理 SMO 例外狀況

適用於