This documentation is archived and is not being maintained.

PrintQueue Methods

The PrintQueue type exposes the following members.

Public method AddJob Overloaded. Inserts a new print job into the queue.
Public method Commit Writes the current properties of the PrintQueue object to the actual print queue on the print server. (Overrides PrintSystemObject.Commit().)
Public method Static member CreateXpsDocumentWriter Overloaded. Creates an XpsDocumentWriter object.
Public method Dispose Overloaded. Releases the resources used by the PrintSystemObject.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases the resources that are being used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetJob Gets the print job with the specified ID number.
Public method GetPrintCapabilities Overloaded. Gets a PrintCapabilities object that identifies the capabilities of the printer or device, such as whether it prints in color or is capable of two-sided printing.
Public method GetPrintCapabilitiesAsXml Overloaded. Gets a MemoryStream object that specifies the printer's capabilities as an XML stream that complies with the Print Schema.
Public method GetPrintJobInfoCollection Creates a collection that contains a PrintSystemJobInfo object for each job in the queue.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Initialize Initializes the properties of the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method InternalDispose Releases the unmanaged resources used by the PrintQueue and optionally releases the managed resources. (Overrides PrintSystemObject.InternalDispose(Boolean).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MergeAndValidatePrintTicket Overloaded. Merges two PrintTickets and guarantees that the resulting PrintTicket is valid and does not ask for any printing functionality that the printer does not support.
Public method Pause Pauses the print queue. It remains paused until Resume is executed.
Public method Purge Removes all the jobs in the print queue.
Public method Refresh Updates the properties of the PrintQueue object with values from the printer and the print queue utility that runs on the computer. (Overrides PrintSystemObject.Refresh().)
Public method Resume Restarts a print queue that was paused.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)