通过


XamlParseException 构造函数

定义

初始化 XamlParseException 类的新实例。

重载

名称 说明
XamlParseException()

使用描述错误的系统提供的消息初始化 XamlParseException 类的新实例。

XamlParseException(String)

使用描述错误的指定消息初始化 XamlParseException 类的新实例。

XamlParseException(SerializationInfo, StreamingContext)

使用序列化数据初始化类的新实例 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 System.Xaml.XamlParseException : string -> System.Xaml.XamlParseException
Public Sub New (message As String)

参数

message
String

描述异常的消息。 此构造函数的调用方必须确保此字符串已本地化为当前系统区域性。

适用于

XamlParseException(SerializationInfo, StreamingContext)

使用序列化数据初始化类的新实例 XamlParseException

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

参数

info
SerializationInfo

保存序列化对象数据的对象。

context
StreamingContext

有关源或目标的上下文信息。

适用于

XamlParseException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用初始化类的新实例 XamlParseException

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

参数

message
String

描述异常的消息。 此构造函数的调用方必须确保此字符串已本地化为当前系统区域性。

innerException
Exception

是当前异常原因的异常。 如果未 innerExceptionnull 参数,则会在处理内部异常的 catch 块中引发当前异常。

注解

作为上一个异常的直接结果引发的异常应包括对 InnerException 属性中上一个异常的引用。 InnerException 属性返回传入构造函数的相同值,或者如果 null 属性未向构造函数提供内部异常值,则返回 InnerException

适用于