XamlParseException XamlParseException XamlParseException XamlParseException Constructors

Definition

Overloads

XamlParseException() XamlParseException() XamlParseException()

Initializes a new instance of the XamlParseException class.

XamlParseException(String) XamlParseException(String) XamlParseException(String) XamlParseException(String)

Initializes a new instance of the XamlParseException class, using the specified exception message string.

XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlParseException class.

XamlParseException(String, Exception) XamlParseException(String, Exception) XamlParseException(String, Exception) XamlParseException(String, Exception)

Initializes a new instance of the XamlParseException class, using the specified exception message string and inner exception.

XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32)

Initializes a new instance of the XamlParseException class, using the specified exception message string, and the specified line number and position in the line.

XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception)

Initializes a new instance of the XamlParseException class, using the specified exception message, inner exception, line number, and position in the line.

XamlParseException() XamlParseException() XamlParseException()

Initializes a new instance of the XamlParseException class.

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

XamlParseException(String) XamlParseException(String) XamlParseException(String) XamlParseException(String)

Initializes a new instance of the XamlParseException class, using the specified exception message string.

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

Parameters

message
String String String String

The exception message.

XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext) XamlParseException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlParseException class.

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.XamlParseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

Contains all the information that is required to serialize or deserialize the object.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The source and destination of a serialized stream.

Remarks

This constructor is used for serialization when marshaling an exception of this type across an application domain or machine boundary.

XamlParseException(String, Exception) XamlParseException(String, Exception) XamlParseException(String, Exception) XamlParseException(String, Exception)

Initializes a new instance of the XamlParseException class, using the specified exception message string and inner exception.

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

Parameters

message
String String String String

The exception message.

innerException
Exception Exception Exception Exception

The initial exception that occurred.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32) XamlParseException(String, Int32, Int32)

Initializes a new instance of the XamlParseException class, using the specified exception message string, and the specified line number and position in the line.

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.XamlParseException
Public Sub New (message As String, lineNumber As Integer, linePosition As Integer)

Parameters

message
String String String String

The exception message.

lineNumber
Int32 Int32 Int32 Int32

The line number where the exception occurred.

linePosition
Int32 Int32 Int32 Int32

The position in the line at which the exception occurred.

XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception) XamlParseException(String, Int32, Int32, Exception)

Initializes a new instance of the XamlParseException class, using the specified exception message, inner exception, line number, and position in the line.

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.XamlParseException
Public Sub New (message As String, lineNumber As Integer, linePosition As Integer, innerException As Exception)

Parameters

message
String String String String

The exception message.

lineNumber
Int32 Int32 Int32 Int32

The line number where the exception occurred.

linePosition
Int32 Int32 Int32 Int32

The position in the line at which the exception occurred.

innerException
Exception Exception Exception Exception

The initial exception that occurred.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

Applies to