PrintSystemException Constructors

Definition

Initializes a new instance of the PrintSystemException class.

Overloads

PrintSystemException()

Initializes a new instance of the PrintSystemException class.

PrintSystemException(String)

Initializes a new instance of the PrintSystemException class that provides a specific error message.

PrintSystemException(Int32, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message.

PrintSystemException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintSystemException class that provides specific serialization information and streaming context.

PrintSystemException(String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error message, including the underlying cause of the exception.

PrintSystemException(Int32, String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message, including the underlying cause of the exception.

PrintSystemException(Int32, String, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code, error message, and printer message.

PrintSystemException()

Initializes a new instance of the PrintSystemException class.

C#
public PrintSystemException();

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(String)

Initializes a new instance of the PrintSystemException class that provides a specific error message.

C#
public PrintSystemException(string message);

Parameters

message
String

A string that describes the error condition.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(Int32, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message.

C#
public PrintSystemException(int errorCode, string message);

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

message
String

A string that describes the error condition.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintSystemException class that provides specific serialization information and streaming context.

C#
protected PrintSystemException(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, including source and destination, of the serialized stream.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error message, including the underlying cause of the exception.

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

Parameters

message
String

A string that describes the error condition.

innerException
Exception

The underlying error condition that caused the exception.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(Int32, String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message, including the underlying cause of the exception.

C#
public PrintSystemException(int errorCode, string message, Exception innerException);

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

message
String

A string that describes the error condition.

innerException
Exception

The underlying error condition that caused the exception.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

PrintSystemException(Int32, String, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code, error message, and printer message.

C#
public PrintSystemException(int errorCode, string message, string printerMessage);

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

message
String

A string that describes the error condition.

printerMessage
String

The exception message sent by the printer driver or unmanaged print system component that caused the exception.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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