XpsWriterException Constructors

Definition

Initializes a new instance of the XpsWriterException class.

Overloads

XpsWriterException()

Initializes a new instance of the XpsWriterException class.

XpsWriterException(String)

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

XpsWriterException(SerializationInfo, StreamingContext)

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

XpsWriterException(String, Exception)

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

XpsWriterException()

Initializes a new instance of the XpsWriterException class.

C#
public XpsWriterException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XpsWriterException(String)

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

C#
public XpsWriterException(string message);

Parameters

message
String

A String that describes the error condition.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XpsWriterException(SerializationInfo, StreamingContext)

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

C#
protected XpsWriterException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

XpsWriterException(String, Exception)

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

C#
public XpsWriterException(string message, Exception innerException);

Parameters

message
String

A String that describes the error condition.

innerException
Exception

The underlying error that caused the XpsWriterException.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10