XamlParseException 构造函数  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XamlParseException 类的新实例。
重载
| XamlParseException() | 初始化 XamlParseException 类的新实例。 | 
| XamlParseException(String) | 使用指定的异常消息字符串初始化 XamlParseException 类的新实例。 | 
| XamlParseException(SerializationInfo, StreamingContext) | 初始化 XamlParseException 类的新实例。 | 
| XamlParseException(String, Exception) | 使用指定的异常消息字符串和内部异常初始化 XamlParseException 类的新实例。 | 
| XamlParseException(String, Int32, Int32) | 使用指定的异常消息字符串、指定的行号以及行中的位置初始化 XamlParseException 类的新实例。 | 
| XamlParseException(String, Int32, Int32, 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.Windows.Markup.XamlParseException : string -> System.Windows.Markup.XamlParseExceptionPublic 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.Windows.Markup.XamlParseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Markup.XamlParseExceptionProtected 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.Windows.Markup.XamlParseException : string * Exception -> System.Windows.Markup.XamlParseExceptionPublic Sub New (message As String, innerException As Exception)参数
- message
- String
异常消息。
- innerException
- Exception
所发生的初始异常。
注解
作为上一个异常直接结果引发的异常应包含对上一个异常的引用。 
              InnerException 属性将返回传递给构造函数的同一值;如果 InnerException 属性不向构造函数提供内部异常值,则返回 null。
适用于
XamlParseException(String, Int32, Int32)
使用指定的异常消息字符串、指定的行号以及行中的位置初始化 XamlParseException 类的新实例。
public:
 XamlParseException(System::String ^ message, int lineNumber, int linePosition);public XamlParseException (string message, int lineNumber, int linePosition);new System.Windows.Markup.XamlParseException : string * int * int -> System.Windows.Markup.XamlParseExceptionPublic Sub New (message As String, lineNumber As Integer, linePosition As Integer)参数
- message
- String
异常消息。
- lineNumber
- Int32
发生异常的行号。
- linePosition
- Int32
行中发生异常的位置。
适用于
XamlParseException(String, Int32, Int32, Exception)
使用指定的异常消息、内部异常、行号以及行中的位置初始化 XamlParseException 类的新实例。
public:
 XamlParseException(System::String ^ message, int lineNumber, int linePosition, Exception ^ innerException);public XamlParseException (string message, int lineNumber, int linePosition, Exception innerException);new System.Windows.Markup.XamlParseException : string * int * int * Exception -> System.Windows.Markup.XamlParseExceptionPublic Sub New (message As String, lineNumber As Integer, linePosition As Integer, innerException As Exception)参数
- message
- String
异常消息。
- lineNumber
- Int32
发生异常的行号。
- linePosition
- Int32
行中发生异常的位置。
- innerException
- Exception
所发生的初始异常。
注解
作为上一个异常直接结果引发的异常应包含对上一个异常的引用。 
              InnerException 属性将返回传递给构造函数的同一值;如果 InnerException 属性不向构造函数提供内部异常值,则返回 null。