This documentation is archived and is not being maintained.

EnumeratedPrintQueueTypes Enumeration

Specifies attributes of print queues.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum class EnumeratedPrintQueueTypes
/** @attribute FlagsAttribute() */ 
public enum EnumeratedPrintQueueTypes
public enum EnumeratedPrintQueueTypes

 Member nameDescription
ConnectionsA print queue that is connected to the specified print server. 
DirectPrintingA print queue that sends a print job directly to printing instead of spooling the job first. 
EnableBidiA print queue for a printer that has bidirectional communication enabled. 
EnableDevQueryA print queue that holds its print jobs when the document and printer configurations do not match. 
FaxA print queue that services a fax machine. 
KeepPrintedJobsA print queue that keeps jobs in the queue after printing them. 
LocalA print queue that is installed as a local print queue on the specified print server. 
PublishedInDirectoryServicesA print queue that is visible in the directory of printers. 
PushedMachineConnectionA print queue that was installed by using the Push Printer Connections computer policy. See Remarks. 
PushedUserConnectionA print queue that was installed by using the Push Printer Connections user policy. See Remarks. 
QueuedA print queue that allows multiple print jobs in the queue. 
RawOnlyA print queue that spools only raw data. 
SharedA print queue that is shared. 
TerminalServerA print queue that is installed by the redirection feature in Terminal Services. 
WorkOfflineA print queue that can work offline. 

Use these values with the GetPrintQueues method to list subsets of available print queues.

PushedMachineConnection and PushedUserConnection refer to policies that enable automated connection of machines and users to printers. See the section "Deploying Printers to Users or Computers by Using Group Policy" in the Step-by-Step Guide for Print Management.

The following example shows how to use the EnumeratedPrintQueueTypes enumeration to get a subset of available print queues. For the complete example, see Enumerating a Subset of Print Queues Sample.

// Specify that the list will contain only the print queues that are installed as local and are shared
array<System::Printing::EnumeratedPrintQueueTypes>^ enumerationFlags = {EnumeratedPrintQueueTypes::Local,EnumeratedPrintQueueTypes::Shared};

LocalPrintServer^ printServer = gcnew LocalPrintServer();

//Use the enumerationFlags to filter out unwanted print queues
PrintQueueCollection^ printQueuesOnLocalServer = printServer->GetPrintQueues(enumerationFlags);

Console::WriteLine("These are your shared, local print queues:\n\n");

for each (PrintQueue^ printer in printQueuesOnLocalServer)
   Console::WriteLine("\tThe shared printer " + printer->Name + " is located at " + printer->Location + "\n");
Console::WriteLine("Press enter to continue.");

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