แก้ไข

แชร์ผ่าน


PrintingCanceledException Constructors

Definition

Initializes a new instance of the PrintingCanceledException class.

Overloads

PrintingCanceledException()

Initializes a new instance of the PrintingCanceledException class.

PrintingCanceledException(String)

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

PrintingCanceledException(Int32, String)

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

PrintingCanceledException(SerializationInfo, StreamingContext)

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

PrintingCanceledException(String, Exception)

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

PrintingCanceledException(Int32, String, Exception)

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

PrintingCanceledException(Int32, String, String, String, Int32)

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

PrintingCanceledException(Int32, String, String, String, Int32, Exception)

Initializes a new instance of the PrintingCanceledException class with a specific error code, error condition, print queue name, job name, job ID, and underlying cause of the exception.

PrintingCanceledException()

Initializes a new instance of the PrintingCanceledException class.

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

Applies to

PrintingCanceledException(String)

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

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

Parameters

message
String

A String that describes the error condition.

Applies to

PrintingCanceledException(Int32, String)

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

public:
 PrintingCanceledException(int errorCode, System::String ^ message);
public PrintingCanceledException (int errorCode, string message);
new System.Printing.PrintingCanceledException : int * string -> System.Printing.PrintingCanceledException
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

PrintingCanceledException(SerializationInfo, StreamingContext)

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

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

PrintingCanceledException(String, Exception)

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

public:
 PrintingCanceledException(System::String ^ message, Exception ^ innerException);
public PrintingCanceledException (string message, Exception innerException);
new System.Printing.PrintingCanceledException : string * Exception -> System.Printing.PrintingCanceledException
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 PrintingCanceledException.

Applies to

PrintingCanceledException(Int32, String, Exception)

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

public:
 PrintingCanceledException(int errorCode, System::String ^ message, Exception ^ innerException);
public PrintingCanceledException (int errorCode, string message, Exception innerException);
new System.Printing.PrintingCanceledException : int * string * Exception -> System.Printing.PrintingCanceledException
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 condition that caused the PrintingCanceledException.

Applies to

PrintingCanceledException(Int32, String, String, String, Int32)

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

public:
 PrintingCanceledException(int errorCode, System::String ^ message, System::String ^ printQueueName, System::String ^ jobName, int jobId);
public PrintingCanceledException (int errorCode, string message, string printQueueName, string jobName, int jobId);
new System.Printing.PrintingCanceledException : int * string * string * string * int -> System.Printing.PrintingCanceledException
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

PrintingCanceledException(Int32, String, String, String, Int32, Exception)

Initializes a new instance of the PrintingCanceledException class with a specific error code, error condition, print queue name, job name, job ID, and underlying cause of the exception.

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