Bewerken

Delen via


XamlObjectReaderException Constructors

Definition

Initializes a new instance of the XamlObjectReaderException class.

Overloads

XamlObjectReaderException()

Initializes a new instance of the XamlObjectReaderException class with a system-supplied message that describes the error.

XamlObjectReaderException(String)

Initializes a new instance of the XamlObjectReaderException class with a specified message that describes the error.

XamlObjectReaderException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlObjectReaderException class with serialized data.

XamlObjectReaderException(String, Exception)

Initializes a new instance of the XamlObjectReaderException class with a specified error message and a reference to the inner exception that is the cause of this exception.

XamlObjectReaderException()

Initializes a new instance of the XamlObjectReaderException class with a system-supplied message that describes the error.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error.

Applies to

XamlObjectReaderException(String)

Initializes a new instance of the XamlObjectReaderException class with a specified message that describes the error.

public:
 XamlObjectReaderException(System::String ^ message);
public XamlObjectReaderException (string message);
new System.Xaml.XamlObjectReaderException : string -> System.Xaml.XamlObjectReaderException
Public Sub New (message As String)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to

XamlObjectReaderException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlObjectReaderException class with serialized data.

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

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.

Applies to

XamlObjectReaderException(String, Exception)

Initializes a new instance of the XamlObjectReaderException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

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

Applies to