PrintQueueException Constructors
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 PrintQueueException class.
PrintQueueException() |
Initializes a new instance of the PrintQueueException class. |
PrintQueueException(String) |
Initializes a new instance of the PrintQueueException class that provides a specific error condition. |
PrintQueueException(SerializationInfo, StreamingContext) |
Initializes a new instance of the PrintQueueException class that provides specific SerializationInfo and StreamingContext. This constructor is protected. |
PrintQueueException(String, Exception) |
Initializes a new instance of the PrintQueueException class that provides a specific error condition, including the underlying cause of the exception. |
PrintQueueException(Int32, String, String) |
Initializes a new instance of the PrintQueueException class that provides a specific error code, error condition, and printer name. |
PrintQueueException(Int32, String, String, Exception) |
Initializes a new instance of the PrintQueueException class that provides a specific printer name, error code, and error condition, including the underlying cause of the exception. |
PrintQueueException(Int32, String, String, String) |
Initializes a new instance of the PrintQueueException class that provides a specific error code, error condition, printer name, and printer message. |
Initializes a new instance of the PrintQueueException class.
public:
PrintQueueException();
public PrintQueueException ();
Public Sub New ()
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides a specific error condition.
public:
PrintQueueException(System::String ^ message);
public PrintQueueException (string message);
new System.Printing.PrintQueueException : string -> System.Printing.PrintQueueException
Public Sub New (message As String)
Parameters
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides specific SerializationInfo and StreamingContext. This constructor is protected.
protected:
PrintQueueException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrintQueueException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Printing.PrintQueueException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Printing.PrintQueueException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The data that is required to serialize or deserialize an object.
- context
- StreamingContext
The context, including source and destination, of the serialized stream.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides a specific error condition, including the underlying cause of the exception.
public:
PrintQueueException(System::String ^ message, Exception ^ innerException);
public PrintQueueException (string message, Exception innerException);
new System.Printing.PrintQueueException : string * Exception -> System.Printing.PrintQueueException
Public Sub New (message As String, innerException As Exception)
Parameters
- innerException
- Exception
The underlying error condition that caused the PrintQueueException.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides a specific error code, error condition, and printer name.
public:
PrintQueueException(int errorCode, System::String ^ message, System::String ^ printerName);
public PrintQueueException (int errorCode, string message, string printerName);
new System.Printing.PrintQueueException : int * string * string -> System.Printing.PrintQueueException
Public Sub New (errorCode As Integer, message As String, printerName As String)
Parameters
- errorCode
- Int32
An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.
- printerName
- String
The name of the printer that was being accessed when the error occurred.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides a specific printer name, error code, and error condition, including the underlying cause of the exception.
public:
PrintQueueException(int errorCode, System::String ^ message, System::String ^ printerName, Exception ^ innerException);
public PrintQueueException (int errorCode, string message, string printerName, Exception innerException);
new System.Printing.PrintQueueException : int * string * string * Exception -> System.Printing.PrintQueueException
Public Sub New (errorCode As Integer, message As String, printerName As String, innerException As Exception)
Parameters
- errorCode
- Int32
An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.
- printerName
- String
The name of the printer that was being accessed when the error occurred.
- innerException
- Exception
The underlying error condition that caused the PrintQueueException.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the PrintQueueException class that provides a specific error code, error condition, printer name, and printer message.
public:
PrintQueueException(int errorCode, System::String ^ message, System::String ^ printerName, System::String ^ printerMessage);
public PrintQueueException (int errorCode, string message, string printerName, string printerMessage);
new System.Printing.PrintQueueException : int * string * string * string -> System.Printing.PrintQueueException
Public Sub New (errorCode As Integer, message As String, printerName As String, printerMessage As String)
Parameters
- errorCode
- Int32
An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.
- printerName
- String
The name of the printer that was being accessed when the error occurred.
- printerMessage
- String
The exception message that was sent by the printer driver or unmanaged print system component that triggered the exception.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: