Bewerken

Delen via


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.

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

Applies to

PrintServerException(String)

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

public:
 PrintServerException(System::String ^ message);
public PrintServerException (string message);
new System.Printing.PrintServerException : string -> System.Printing.PrintServerException
Public Sub New (message As String)

Parameters

message
String

A String that describes the error condition.

Applies to

PrintServerException(SerializationInfo, StreamingContext)

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

protected:
 PrintServerException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrintServerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Printing.PrintServerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Printing.PrintServerException
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, including source and destination, of the serialized stream.

Applies to

PrintServerException(String, Exception)

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

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

Parameters

message
String

A String that describes the error condition.

innerException
Exception

The underlying error condition that caused the PrintServerException.

Applies to

PrintServerException(Int32, String, String)

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

public:
 PrintServerException(int errorCode, System::String ^ message, System::String ^ serverName);
public PrintServerException (int errorCode, string message, string serverName);
new System.Printing.PrintServerException : int * string * string -> System.Printing.PrintServerException
Public Sub New (errorCode As Integer, message As String, serverName As String)

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

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.

public:
 PrintServerException(int errorCode, System::String ^ message, System::String ^ serverName, Exception ^ innerException);
public PrintServerException (int errorCode, string message, string serverName, Exception innerException);
new System.Printing.PrintServerException : int * string * string * Exception -> System.Printing.PrintServerException
Public Sub New (errorCode As Integer, message As String, serverName As String, innerException As Exception)

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