PrintQueueException 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 PrintQueueException class.
Overloads
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. |
PrintQueueException()
Initializes a new instance of the PrintQueueException class.
public:
PrintQueueException();
public PrintQueueException ();
Public Sub New ()
Applies to
PrintQueueException(String)
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
PrintQueueException(SerializationInfo, StreamingContext)
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
PrintQueueException(String, Exception)
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
PrintQueueException(Int32, String, String)
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
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.
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
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.
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.