XamlParseException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception that is thrown when a XAML reader cannot process elements of the XAML reader source into a XAML node stream.
public ref class XamlParseException : System::Xaml::XamlException
public class XamlParseException : System.Xaml.XamlException
type XamlParseException = class
inherit XamlException
Public Class XamlParseException
Inherits XamlException
- Inheritance
Remarks
For cases where line information is available (such as when the XAML node stream is read by a XamlXmlReader), and for certain exception cases, a XamlParseException can report line information from the source of the XAML node stream. This information is appended to the Message, and is also contained in LineNumber and LinePosition. Each of these members is implemented by the XamlException base class.
Constructors
| Name | Description |
|---|---|
| XamlParseException() |
Initializes a new instance of the XamlParseException class with a system-supplied message that describes the error. |
| XamlParseException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XamlParseException class with serialized data. |
| XamlParseException(String, Exception) |
Initializes a new instance of the XamlParseException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| XamlParseException(String) |
Initializes a new instance of the XamlParseException class with a specified message that describes the error. |
Properties
| Name | Description |
|---|---|
| LineNumber |
Gets or sets the line number component of XAML text line information that the exception reports. (Inherited from XamlException) |
| LinePosition |
Gets or sets the line position component of XAML text line information that the exception reports. (Inherited from XamlException) |
| Message |
Gets or sets the exception message, and if line information is available, appends the line information to the message. (Inherited from XamlException) |
Methods
| Name | Description |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
Implements GetObjectData(SerializationInfo, StreamingContext) and provides serialization support for the line information data. (Inherited from XamlException) |