PrintJobException 建構函式
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PrintJobException 類別的新執行個體。
PrintJobException() |
初始化 PrintJobException 類別的新執行個體。 |
PrintJobException(String) |
初始化提供特定錯誤條件之 PrintJobException 類別的新執行個體。 |
PrintJobException(Int32, String) |
初始化提供特定錯誤碼和錯誤條件之 PrintJobException 類別的新執行個體。 |
PrintJobException(SerializationInfo, StreamingContext) |
初始化提供特定 PrintJobException 和 SerializationInfo 之 StreamingContext 類別的新執行個體。 這個建構函式受到保護。 |
PrintJobException(String, Exception) |
初始化提供特定錯誤條件 (包括例外狀況原因) 之 PrintJobException 類別的新執行個體。 |
PrintJobException(Int32, String, Exception) |
初始化提供特定錯誤碼和錯誤條件 (包括例外狀況的基礎原因) 之 PrintJobException 類別的新執行個體。 |
PrintJobException(Int32, String, String, String, Int32) |
初始化提供特定錯誤碼、錯誤條件、列印佇列名稱、工作名稱和工作 ID 之 PrintJobException 類別的新執行個體。 |
PrintJobException(Int32, String, String, String, Int32, Exception) |
初始化提供特定訊息、錯誤碼、錯誤條件、列印佇列名稱、工作名稱和工作 ID 之 PrintJobException 類別的新執行個體。 |
初始化 PrintJobException 類別的新執行個體。
public:
PrintJobException();
public PrintJobException ();
Public Sub New ()
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定錯誤條件之 PrintJobException 類別的新執行個體。
public:
PrintJobException(System::String ^ message);
public PrintJobException (string message);
new System.Printing.PrintJobException : string -> System.Printing.PrintJobException
Public Sub New (message As String)
參數
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定錯誤碼和錯誤條件之 PrintJobException 類別的新執行個體。
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)
參數
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定 PrintJobException 和 SerializationInfo 之 StreamingContext 類別的新執行個體。 這個建構函式受到保護。
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)
參數
- info
- SerializationInfo
序列化或還原序列化物件所需要的資料。
- context
- StreamingContext
已序列化資料流的內容,包括來源和目的端。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定錯誤條件 (包括例外狀況原因) 之 PrintJobException 類別的新執行個體。
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)
參數
- innerException
- Exception
導致 PrintJobException 的根本錯誤。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定錯誤碼和錯誤條件 (包括例外狀況的基礎原因) 之 PrintJobException 類別的新執行個體。
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)
參數
- innerException
- Exception
導致 PrintJobException 的根本錯誤。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定錯誤碼、錯誤條件、列印佇列名稱、工作名稱和工作 ID 之 PrintJobException 類別的新執行個體。
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)
參數
- printQueueName
- String
導致例外狀況的列印工作所在的列印佇列名稱。
- jobName
- String
導致例外狀況的列印工作名稱。
- jobId
- Int32
導致例外狀況的列印工作 ID 編號。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |
初始化提供特定訊息、錯誤碼、錯誤條件、列印佇列名稱、工作名稱和工作 ID 之 PrintJobException 類別的新執行個體。
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)
參數
- printQueueName
- String
導致例外狀況的列印工作所在的列印佇列名稱。
- jobName
- String
導致例外狀況的列印工作名稱。
- jobId
- Int32
導致例外狀況的列印工作 ID 編號。
- innerException
- Exception
例外狀況的基礎原因。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.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 |