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

打印机驱动程序或导致异常的非托管打印系统组件发送的异常消息。

适用于