InvalidPrinterException 构造函数

定义

初始化 InvalidPrinterException 类的新实例。

重载

InvalidPrinterException(PrinterSettings)

初始化 InvalidPrinterException 类的新实例。

InvalidPrinterException(SerializationInfo, StreamingContext)
已过时.

用序列化数据初始化 InvalidPrinterException 类的新实例。

InvalidPrinterException(PrinterSettings)

Source:
InvalidPrinterException.cs
Source:
InvalidPrinterException.cs
Source:
InvalidPrinterException.cs

初始化 InvalidPrinterException 类的新实例。

public:
 InvalidPrinterException(System::Drawing::Printing::PrinterSettings ^ settings);
public InvalidPrinterException (System.Drawing.Printing.PrinterSettings settings);
new System.Drawing.Printing.InvalidPrinterException : System.Drawing.Printing.PrinterSettings -> System.Drawing.Printing.InvalidPrinterException
Public Sub New (settings As PrinterSettings)

参数

settings
PrinterSettings

指定打印机设置的 PrinterSettings

适用于

InvalidPrinterException(SerializationInfo, StreamingContext)

Source:
InvalidPrinterException.Core.cs
Source:
InvalidPrinterException.Core.cs
Source:
InvalidPrinterException.Core.cs

注意

现已弃用此 API。

用序列化数据初始化 InvalidPrinterException 类的新实例。

protected:
 InvalidPrinterException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidPrinterException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete(DiagnosticId="SYSLIB0051")]
protected InvalidPrinterException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Drawing.Printing.InvalidPrinterException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Drawing.Printing.InvalidPrinterException
[<System.Obsolete(DiagnosticId="SYSLIB0051")>]
new System.Drawing.Printing.InvalidPrinterException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Drawing.Printing.InvalidPrinterException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfo

context
StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。

属性

例外

infonull

类名为 nullHResult 为 0。

注解

在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。

另请参阅

适用于