Editare

Partajați prin


XamlParseException Constructors

Definition

Initializes a new instance of the XamlParseException class.

Overloads

XamlParseException()

Initializes a new instance of the XamlParseException class.

XamlParseException(String)

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

XamlParseException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlParseException class.

XamlParseException(String, Exception)

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

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)

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

XamlParseException()

Initializes a new instance of the XamlParseException class.

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

Applies to

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

The exception message.

Applies to

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

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

context
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.

Applies to

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

The exception message.

innerException
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

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

The exception message.

lineNumber
Int32

The line number where the exception occurred.

linePosition
Int32

The position in the line at which the exception occurred.

Applies to

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

The exception message.

lineNumber
Int32

The line number where the exception occurred.

linePosition
Int32

The position in the line at which the exception occurred.

innerException
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