XpsException XpsException XpsException XpsException Constructors

Definition

Overloads

XpsException() XpsException() XpsException()

Initializes a new instance of the XpsException class.

XpsException(String) XpsException(String) XpsException(String) XpsException(String)

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

XpsException(SerializationInfo, StreamingContext) XpsException(SerializationInfo, StreamingContext) XpsException(SerializationInfo, StreamingContext) XpsException(SerializationInfo, StreamingContext)

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

XpsException(String, Exception) XpsException(String, Exception) XpsException(String, Exception) 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() XpsException() XpsException()

Initializes a new instance of the XpsException class.

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

XpsException(String) XpsException(String) XpsException(String) 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 String String String

A String that describes the error condition.

XpsException(SerializationInfo, StreamingContext) XpsException(SerializationInfo, StreamingContext) XpsException(SerializationInfo, StreamingContext) 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 SerializationInfo SerializationInfo SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext StreamingContext

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

XpsException(String, Exception) XpsException(String, Exception) XpsException(String, Exception) 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 String String String

A String that describes the error condition.

innerException
Exception Exception Exception 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