Uredi

Deli z drugimi prek


PrintSystemException Constructors

Definition

Initializes a new instance of the PrintSystemException class.

Overloads

PrintSystemException()

Initializes a new instance of the PrintSystemException class.

PrintSystemException(String)

Initializes a new instance of the PrintSystemException class that provides a specific error message.

PrintSystemException(Int32, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message.

PrintSystemException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintSystemException class that provides specific serialization information and streaming context.

PrintSystemException(String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error message, including the underlying cause of the exception.

PrintSystemException(Int32, String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message, including the underlying cause of the exception.

PrintSystemException(Int32, String, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code, error message, and printer message.

PrintSystemException()

Initializes a new instance of the PrintSystemException class.

public:
 PrintSystemException();
public PrintSystemException ();
Public Sub New ()

Applies to

PrintSystemException(String)

Initializes a new instance of the PrintSystemException class that provides a specific error message.

public:
 PrintSystemException(System::String ^ message);
public PrintSystemException (string message);
new System.Printing.PrintSystemException : string -> System.Printing.PrintSystemException
Public Sub New (message As String)

Parameters

message
String

A string that describes the error condition.

Applies to

PrintSystemException(Int32, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message.

public:
 PrintSystemException(int errorCode, System::String ^ message);
public PrintSystemException (int errorCode, string message);
new System.Printing.PrintSystemException : int * string -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message As String)

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

message
String

A string that describes the error condition.

Applies to

PrintSystemException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintSystemException class that provides specific serialization information and streaming context.

protected:
 PrintSystemException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrintSystemException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Printing.PrintSystemException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Printing.PrintSystemException
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

PrintSystemException(String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error message, including the underlying cause of the exception.

public:
 PrintSystemException(System::String ^ message, Exception ^ innerException);
public PrintSystemException (string message, Exception innerException);
new System.Printing.PrintSystemException : string * Exception -> System.Printing.PrintSystemException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A string that describes the error condition.

innerException
Exception

The underlying error condition that caused the exception.

Applies to

PrintSystemException(Int32, String, Exception)

Initializes a new instance of the PrintSystemException class that provides a specific error code and error message, including the underlying cause of the exception.

public:
 PrintSystemException(int errorCode, System::String ^ message, Exception ^ innerException);
public PrintSystemException (int errorCode, string message, Exception innerException);
new System.Printing.PrintSystemException : int * string * Exception -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message 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.

message
String

A string that describes the error condition.

innerException
Exception

The underlying error condition that caused the exception.

Applies to

PrintSystemException(Int32, String, String)

Initializes a new instance of the PrintSystemException class that provides a specific error code, error message, and printer message.

public:
 PrintSystemException(int errorCode, System::String ^ message, System::String ^ printerMessage);
public PrintSystemException (int errorCode, string message, string printerMessage);
new System.Printing.PrintSystemException : int * string * string -> System.Printing.PrintSystemException
Public Sub New (errorCode As Integer, message 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.

message
String

A string that describes the error condition.

printerMessage
String

The exception message sent by the printer driver or unmanaged print system component that caused the exception.

Applies to