This documentation is archived and is not being maintained.

PrintQueue Class

Manages printers and print jobs.

Namespace: System.Printing
Assembly: System.Printing (in system.printing.dll)

public class PrintQueue : PrintSystemObject
public class PrintQueue extends PrintSystemObject
public class PrintQueue extends PrintSystemObject
Not applicable.

Some properties of the PrintQueue object represent characteristics of the print queue utility that runs on the computer, but others represent features or states of the printer itself. For example, NumberOfJobs is a characteristic of the print queue, while Location is a property of the printer. Many of the properties of the printer, such as whether it needs user attention, need to be passed, by means of the Refresh method, from the printer itself to the PrintQueue object. This should be done before the corresponding property (NeedUserIntervention) is read by your program. Similarly, when your program changes the values of one or more properties of a PrintQueue object, the change has to be written to the actual print queue utility on the computer. Do this with the Commit method.

Notes to Inheritors: For guidance about deriving this class, see How to: Extend the Print Schema and Create New Print System Classes.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0