InvalidPrinterException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the InvalidPrinterException class.
Overloads
InvalidPrinterException(PrinterSettings) |
Initializes a new instance of the InvalidPrinterException class. |
InvalidPrinterException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the InvalidPrinterException class with serialized data. |
InvalidPrinterException(PrinterSettings)
- Source:
- InvalidPrinterException.cs
- Source:
- InvalidPrinterException.cs
- Source:
- InvalidPrinterException.cs
- Source:
- InvalidPrinterException.cs
- Source:
- InvalidPrinterException.cs
Initializes a new instance of the InvalidPrinterException class.
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)
Parameters
- settings
- PrinterSettings
A PrinterSettings that specifies the settings for a printer.
Applies to
InvalidPrinterException(SerializationInfo, StreamingContext)
Caution
This API is now deprecated.
Initializes a new instance of the InvalidPrinterException class with serialized data.
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);
protected InvalidPrinterException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete(DiagnosticId="SYSLIB0051")>]
new System.Drawing.Printing.InvalidPrinterException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Drawing.Printing.InvalidPrinterException
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)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
- Attributes
Exceptions
info
is null
.
The class name is null
or HResult is 0.
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.