XamlParseException 建構函式

定義

多載

XamlParseException()

使用預設值,初始化 XamlParseException 類別的新執行個體。

XamlParseException(String)

使用指定的錯誤訊息,初始化 XamlParseException 類別的新執行個體。

XamlParseException(String, Exception)

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

XamlParseException()

使用預設值,初始化 XamlParseException 類別的新執行個體。

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

適用於

XamlParseException(String)

使用指定的錯誤訊息,初始化 XamlParseException 類別的新執行個體。

public:
 XamlParseException(System::String ^ message);
public XamlParseException (string message);
new Windows.UI.Xaml.Markup.XamlParseException : string -> Windows.UI.Xaml.Markup.XamlParseException
Public Sub New (message As String)

參數

message
String

解釋例外狀況原因的錯誤訊息。

適用於

XamlParseException(String, Exception)

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

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

參數

message
String

解釋例外狀況原因的錯誤訊息。

innerException
Exception

導致目前例外狀況發生的例外狀況;如果沒有指定任何的內部例外狀況,則為 null

適用於