InvalidPrinterException Class
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.
Represents the exception that is thrown when you try to access a printer using printer settings that are not valid.
public ref class InvalidPrinterException : SystemException
[System.Serializable]
public class InvalidPrinterException : SystemException
public class InvalidPrinterException : SystemException
[<System.Serializable>]
type InvalidPrinterException = class
inherit SystemException
type InvalidPrinterException = class
inherit SystemException
Public Class InvalidPrinterException
Inherits SystemException
- Inheritance
- Attributes
Remarks
The most common cause of printer settings that are not valid is referencing a printer that does not exist.
For more information about printing, see the System.Drawing.Printing namespace overview.
Constructors
| Name | Description |
|---|---|
| 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. |
Methods
| Name | Description |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
Obsolete.
Overridden. Sets the SerializationInfo with information about the exception. |