Chỉnh sửa

PrintSystemException Class

Definition

The exception that occurs when an error condition prevents accessing or creating a PrintSystemObject.

public ref class PrintSystemException : SystemException
public class PrintSystemException : SystemException
type PrintSystemException = class
    inherit SystemException
Public Class PrintSystemException
Inherits SystemException
Inheritance
PrintSystemException
Derived

Remarks

Caution

Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

Constructors

Name Description
PrintSystemException()

Initializes a new instance of the PrintSystemException class.

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(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(String)

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

Methods

Name Description
GetObjectData(SerializationInfo, StreamingContext)

Gets the data that is used to serialize the object and gets the context of the serialized stream.

Applies to