SqlTraceException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SqlTraceException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SqlTraceException() |
初始化 SqlTraceException 類別的新執行個體。 |
| SqlTraceException(String) |
初始化一個新的類別實例 SqlTraceException ,並以指定訊息進行。 |
| SqlTraceException(SerializationInfo, StreamingContext) |
初始化一個新的類別實例 SqlTraceException ,並依指定的序列化資訊與串流上下文。 |
| SqlTraceException(String, Exception) |
初始化類別的新實例 SqlTraceException ,並帶有指定的訊息與內部例外。 |
| SqlTraceException(Type, String) |
初始化一個以指定來源類型和指定訊息的新類別實例 SqlTraceException 。 |
| SqlTraceException(Type, String, Exception) |
初始化一個新的類別實例 SqlTraceException ,並使用指定的原始碼型別、訊息及內部例外。 |
SqlTraceException()
初始化 SqlTraceException 類別的新執行個體。
public:
SqlTraceException();
public SqlTraceException();
Public Sub New ()
範例
適用於
SqlTraceException(String)
初始化一個新的類別實例 SqlTraceException ,並以指定訊息進行。
public:
SqlTraceException(System::String ^ message);
public SqlTraceException(string message);
new Microsoft.SqlServer.Management.Trace.SqlTraceException : string -> Microsoft.SqlServer.Management.Trace.SqlTraceException
Public Sub New (message As String)
參數
範例
適用於
SqlTraceException(SerializationInfo, StreamingContext)
初始化一個新的類別實例 SqlTraceException ,並依指定的序列化資訊與串流上下文。
protected:
SqlTraceException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SqlTraceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Management.Trace.SqlTraceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Management.Trace.SqlTraceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
一個 SerializationInfo 物件值,用來指定 SQL Trace 例外的序列化資訊。
- context
- StreamingContext
一個 StreamingContext 物件值,用來指定 SQL Trace 例外的串流上下文。
範例
適用於
SqlTraceException(String, Exception)
初始化類別的新實例 SqlTraceException ,並帶有指定的訊息與內部例外。
public:
SqlTraceException(System::String ^ message, Exception ^ innerException);
public SqlTraceException(string message, Exception innerException);
new Microsoft.SqlServer.Management.Trace.SqlTraceException : string * Exception -> Microsoft.SqlServer.Management.Trace.SqlTraceException
Public Sub New (message As String, innerException As Exception)
參數
範例
適用於
SqlTraceException(Type, String)
初始化一個以指定來源類型和指定訊息的新類別實例 SqlTraceException 。
public:
SqlTraceException(Type ^ messageSource, System::String ^ messageID);
public SqlTraceException(Type messageSource, string messageID);
new Microsoft.SqlServer.Management.Trace.SqlTraceException : Type * string -> Microsoft.SqlServer.Management.Trace.SqlTraceException
Public Sub New (messageSource As Type, messageID As String)
參數
範例
適用於
SqlTraceException(Type, String, Exception)
初始化一個新的類別實例 SqlTraceException ,並使用指定的原始碼型別、訊息及內部例外。
public:
SqlTraceException(Type ^ messageSource, System::String ^ messageID, Exception ^ innerException);
public SqlTraceException(Type messageSource, string messageID, Exception innerException);
new Microsoft.SqlServer.Management.Trace.SqlTraceException : Type * string * Exception -> Microsoft.SqlServer.Management.Trace.SqlTraceException
Public Sub New (messageSource As Type, messageID As String, innerException As Exception)