PrintServerException Constructors

Definition

Initializes a new instance of the PrintServerException class.

Overloads

PrintServerException()

Initializes a new instance of the PrintServerException class.

PrintServerException(String)

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

PrintServerException(SerializationInfo, StreamingContext)

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

PrintServerException(String, Exception)

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

PrintServerException(Int32, String, String)

Initializes a new instance of the PrintServerException class that provides a specific error code, error condition, and print server name.

PrintServerException(Int32, String, String, Exception)

Initializes a new instance of the PrintServerException class that provides a specific print server name, error code, and error condition, including the underlying cause of the exception.

PrintServerException()

Initializes a new instance of the PrintServerException class.

C#
public PrintServerException();

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

PrintServerException(String)

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

C#
public PrintServerException(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

PrintServerException(SerializationInfo, StreamingContext)

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

C#
protected PrintServerException(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 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

PrintServerException(String, Exception)

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

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

Parameters

message
String

A String that describes the error condition.

innerException
Exception

The underlying error condition that caused the PrintServerException.

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

PrintServerException(Int32, String, String)

Initializes a new instance of the PrintServerException class that provides a specific error code, error condition, and print server name.

C#
public PrintServerException(int errorCode, string message, string serverName);

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.

serverName
String

The name of the print server that was being accessed when the error condition occurred.

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

PrintServerException(Int32, String, String, Exception)

Initializes a new instance of the PrintServerException class that provides a specific print server name, error code, and error condition, including the underlying cause of the exception.

C#
public PrintServerException(int errorCode, string message, string serverName, 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.

serverName
String

The name of the print server that was being accessed when the error condition occurred.

innerException
Exception

The underlying condition that caused the PrintServerException.

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