語言

SqlTraceFailToLoadInstAPIAssemblyException 建構函式

定義

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

多載

名稱 Description
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 Trace Failed to Load 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 Trace Failed to Load Inst API 組合語言例外的序列化資訊。

context
StreamingContext

一個 StreamingContext 物件值,用來指定 SQL Trace Failed to Load 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 Trace Failed to Load Inst API 組合語言例外相關的訊息的值。

innerException
Exception

一個 Exception 物件值,指定 SQL Trace Failed to Load 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 Trace Failed to Load Inst API 組合語言例外相關的訊息的值。

範例

處理 SMO 例外狀況

適用於