Share via


XamlInternalException 建構函式

定義

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

多載

XamlInternalException()

使用系統提供的錯誤描述訊息,初始化 XamlInternalException 類別的新執行個體。

XamlInternalException(String)

初始化具有指定的錯誤描述訊息之 XamlInternalException 類別的新執行個體。

XamlInternalException(SerializationInfo, StreamingContext)

使用序列化資料,初始化 XamlInternalException 類別的新執行個體。

XamlInternalException(String, Exception)

使用指定的錯誤訊息以及造成此例外狀況的內部例外狀況的參考,初始化 XamlInternalException 類別的新執行個體。

XamlInternalException()

使用系統提供的錯誤描述訊息,初始化 XamlInternalException 類別的新執行個體。

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

適用於

XamlInternalException(String)

初始化具有指定的錯誤描述訊息之 XamlInternalException 類別的新執行個體。

public:
 XamlInternalException(System::String ^ message);
public XamlInternalException (string message);
new System.Xaml.XamlInternalException : string -> System.Xaml.XamlInternalException
Public Sub New (message As String)

參數

message
String

說明例外狀況的訊息。

適用於

XamlInternalException(SerializationInfo, StreamingContext)

使用序列化資料,初始化 XamlInternalException 類別的新執行個體。

protected:
 XamlInternalException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XamlInternalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xaml.XamlInternalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xaml.XamlInternalException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

存放序列物件資料的物件。

context
StreamingContext

關於來源或目的端的內容資訊。

適用於

XamlInternalException(String, Exception)

使用指定的錯誤訊息以及造成此例外狀況的內部例外狀況的參考,初始化 XamlInternalException 類別的新執行個體。

public:
 XamlInternalException(System::String ^ message, Exception ^ innerException);
public XamlInternalException (string message, Exception innerException);
new System.Xaml.XamlInternalException : string * Exception -> System.Xaml.XamlInternalException
Public Sub New (message As String, innerException As Exception)

參數

message
String

說明例外狀況的訊息。

innerException
Exception

做為目前例外狀況發生原因的例外狀況。 如果 innerException 參數不是 null,則目前的例外狀況會在處理內部例外的 catch 區塊中引發。

適用於