Επεξεργασία

Κοινή χρήση μέσω


XpsException Constructors

Definition

Initializes a new instance of the XpsException class.

Overloads

XpsException()

Initializes a new instance of the XpsException class.

XpsException(String)

Initializes a new instance of the XpsException class that provides a specific error condition.

XpsException(SerializationInfo, StreamingContext)

Initializes a new instance of the XpsException class that provides specific SerializationInfo and StreamingContext. This constructor is protected.

XpsException(String, Exception)

Initializes a new instance of the XpsException class that provides a specific error condition and includes the cause of the exception.

XpsException()

Initializes a new instance of the XpsException class.

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

Applies to

XpsException(String)

Initializes a new instance of the XpsException class that provides a specific error condition.

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

Parameters

message
String

A String that describes the error condition.

Applies to

XpsException(SerializationInfo, StreamingContext)

Initializes a new instance of the XpsException class that provides specific SerializationInfo and StreamingContext. This constructor is protected.

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

Parameters

info
SerializationInfo

The data that is required to serialize or deserialize an object.

context
StreamingContext

The context, which includes source and destination, of the serialized stream.

Applies to

XpsException(String, Exception)

Initializes a new instance of the XpsException class that provides a specific error condition and includes the cause of the exception.

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

Parameters

message
String

A String that describes the error condition.

innerException
Exception

The underlying error that caused the XpsException.

Remarks

If the innerException parameter is not null (Nothing in Visual Basic), the current exception is thrown in a catch block that handles the inner exception.

Applies to