PrintSystemException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PrintSystemException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| PrintSystemException() |
初始化 PrintSystemException 類別的新執行個體。 |
| PrintSystemException(String) |
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤訊息。 |
| PrintSystemException(Int32, String) |
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼與錯誤訊息。 |
| PrintSystemException(SerializationInfo, StreamingContext) |
初始化一個新的類別實例 PrintSystemException ,提供特定的序列化資訊與串流上下文。 |
| PrintSystemException(String, Exception) |
初始化一個新的類別實例 PrintSystemException ,提供特定錯誤訊息,包括例外的根本原因。 |
| PrintSystemException(Int32, String, Exception) |
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼與錯誤訊息,包括異常的根本原因。 |
| PrintSystemException(Int32, String, String) |
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼、錯誤訊息及印表機訊息。 |
PrintSystemException()
初始化 PrintSystemException 類別的新執行個體。
public:
PrintSystemException();
public PrintSystemException();
Public Sub New ()
適用於
PrintSystemException(String)
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤訊息。
public:
PrintSystemException(System::String ^ message);
public PrintSystemException(string message);
new System.Printing.PrintSystemException : string -> System.Printing.PrintSystemException
Public Sub New (message As String)
參數
- message
- String
一個描述錯誤條件的字串。
適用於
PrintSystemException(Int32, String)
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼與錯誤訊息。
public:
PrintSystemException(int errorCode, System::String ^ message);
public PrintSystemException(int errorCode, string message);
new System.Printing.PrintSystemException : int * string -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message As String)
參數
- message
- String
一個描述錯誤條件的字串。
適用於
PrintSystemException(SerializationInfo, StreamingContext)
初始化一個新的類別實例 PrintSystemException ,提供特定的序列化資訊與串流上下文。
protected:
PrintSystemException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrintSystemException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Printing.PrintSystemException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Printing.PrintSystemException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
這些資料是用來序列化或反序列化物件所需的資料。
- context
- StreamingContext
序列化串流的上下文,包括來源與目的地。
適用於
PrintSystemException(String, Exception)
初始化一個新的類別實例 PrintSystemException ,提供特定錯誤訊息,包括例外的根本原因。
public:
PrintSystemException(System::String ^ message, Exception ^ innerException);
public PrintSystemException(string message, Exception innerException);
new System.Printing.PrintSystemException : string * Exception -> System.Printing.PrintSystemException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
一個描述錯誤條件的字串。
- innerException
- Exception
導致異常的根本錯誤狀況。
適用於
PrintSystemException(Int32, String, Exception)
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼與錯誤訊息,包括異常的根本原因。
public:
PrintSystemException(int errorCode, System::String ^ message, Exception ^ innerException);
public PrintSystemException(int errorCode, string message, Exception innerException);
new System.Printing.PrintSystemException : int * string * Exception -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message As String, innerException As Exception)
參數
- message
- String
一個描述錯誤條件的字串。
- innerException
- Exception
導致異常的根本錯誤狀況。
適用於
PrintSystemException(Int32, String, String)
初始化一個新的類別實例 PrintSystemException ,提供特定的錯誤代碼、錯誤訊息及印表機訊息。
public:
PrintSystemException(int errorCode, System::String ^ message, System::String ^ printerMessage);
public PrintSystemException(int errorCode, string message, string printerMessage);
new System.Printing.PrintSystemException : int * string * string -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message As String, printerMessage As String)
參數
- message
- String
一個描述錯誤條件的字串。
- printerMessage
- String
由印表機驅動程式或非管理列印系統元件發出的異常訊息,導致該異常。