語言

XEventException 建構函式

定義

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

多載

名稱 Description
XEventException()

初始化一個新的類別實例 XEventException ,使用預設值。

XEventException(String)

使用指定的錯誤訊息,初始化 XEventException 類別的新實例。

XEventException(SerializationInfo, StreamingContext)

使用指定的串行化和內容資訊,初始化 XEventException 類別的新實例。

XEventException(String, Exception)

初始化類別的新實例 XEventException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。

XEventException()

初始化一個新的類別實例 XEventException ,使用預設值。

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

適用於

XEventException(String)

使用指定的錯誤訊息,初始化 XEventException 類別的新實例。

public:
 XEventException(System::String ^ message);
public XEventException(string message);
new Microsoft.SqlServer.XEvent.Linq.XEventException : string -> Microsoft.SqlServer.XEvent.Linq.XEventException
Public Sub New (message As String)

參數

message
String

錯誤訊息。

適用於

XEventException(SerializationInfo, StreamingContext)

使用指定的串行化和內容資訊,初始化 XEventException 類別的新實例。

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

參數

info
SerializationInfo

序列化的物件資料。

context
StreamingContext

關於來源或目的地的上下文資訊。

適用於

XEventException(String, Exception)

初始化類別的新實例 XEventException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。

public:
 XEventException(System::String ^ message, Exception ^ inner);
public XEventException(string message, Exception inner);
new Microsoft.SqlServer.XEvent.Linq.XEventException : string * Exception -> Microsoft.SqlServer.XEvent.Linq.XEventException
Public Sub New (message As String, inner As Exception)

參數

message
String

錯誤訊息。

inner
Exception

內心的例外。

適用於