Επεξεργασία

Κοινή χρήση μέσω


PrintJobException Constructors

Definition

Initializes a new instance of the PrintJobException class.

Overloads

PrintJobException()

Initializes a new instance of the PrintJobException class.

PrintJobException(String)

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

PrintJobException(Int32, String)

Initializes a new instance of the PrintJobException class that provides a specific error code and error condition.

PrintJobException(SerializationInfo, StreamingContext)

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

PrintJobException(String, Exception)

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

PrintJobException(Int32, String, Exception)

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

PrintJobException(Int32, String, String, String, Int32)

Initializes a new instance of the PrintJobException class that provides a specific error code, error condition, print queue name, job name, and job ID.

PrintJobException(Int32, String, String, String, Int32, Exception)

Initializes a new instance of the PrintJobException class that provides a specific message, error code, error condition, print queue name, job name, and job ID.

PrintJobException()

Initializes a new instance of the PrintJobException class.

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

Applies to

PrintJobException(String)

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

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

Parameters

message
String

A String that describes the error condition.

Applies to

PrintJobException(Int32, String)

Initializes a new instance of the PrintJobException class that provides a specific error code and error condition.

public:
 PrintJobException(int errorCode, System::String ^ message);
public PrintJobException (int errorCode, string message);
new System.Printing.PrintJobException : int * string -> System.Printing.PrintJobException
Public Sub New (errorCode As Integer, message 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.

Applies to

PrintJobException(SerializationInfo, StreamingContext)

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

protected:
 PrintJobException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrintJobException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Printing.PrintJobException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Printing.PrintJobException
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

PrintJobException(String, Exception)

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

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

Parameters

message
String

A String that describes the error condition.

innerException
Exception

The underlying error that caused the PrintJobException.

Applies to

PrintJobException(Int32, String, Exception)

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

public:
 PrintJobException(int errorCode, System::String ^ message, Exception ^ innerException);
public PrintJobException (int errorCode, string message, Exception innerException);
new System.Printing.PrintJobException : int * string * Exception -> System.Printing.PrintJobException
Public Sub New (errorCode As Integer, message 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.

innerException
Exception

The underlying error that caused the PrintJobException.

Applies to

PrintJobException(Int32, String, String, String, Int32)

Initializes a new instance of the PrintJobException class that provides a specific error code, error condition, print queue name, job name, and job ID.

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

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.

printQueueName
String

The name of the print queue hosting the print job that caused the exception.

jobName
String

The name of the print job that caused the exception.

jobId
Int32

The ID number of the print job that caused the exception.

Applies to

PrintJobException(Int32, String, String, String, Int32, Exception)

Initializes a new instance of the PrintJobException class that provides a specific message, error code, error condition, print queue name, job name, and job ID.

public:
 PrintJobException(int errorCode, System::String ^ message, System::String ^ printQueueName, System::String ^ jobName, int jobId, Exception ^ innerException);
public PrintJobException (int errorCode, string message, string printQueueName, string jobName, int jobId, Exception innerException);
new System.Printing.PrintJobException : int * string * string * string * int * Exception -> System.Printing.PrintJobException
Public Sub New (errorCode As Integer, message As String, printQueueName As String, jobName As String, jobId As Integer, 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.

printQueueName
String

The name of the print queue hosting the print job that caused the exception.

jobName
String

The name of the print job that caused the exception.

jobId
Int32

The ID number of the print job that caused the exception.

innerException
Exception

The underlying cause of the exception.

Applies to