Share via


PrintSystemException 建構函式

定義

初始化 PrintSystemException 類別的新執行個體。

多載

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)

參數

errorCode
Int32

解譯為 HRESULT 的 Int32,它是指派給特定例外狀況的編碼數值。

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)

參數

errorCode
Int32

解譯為 HRESULT 的 Int32,它是指派給特定例外狀況的編碼數值。

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)

參數

errorCode
Int32

解譯為 HRESULT 的 Int32,它是指派給特定例外狀況的編碼數值。

message
String

描述錯誤條件的字串。

printerMessage
String

由印表機驅動程式或導致例外狀況之 Unmanaged 列印系統元件所傳送的例外狀況訊息。

適用於