This documentation is archived and is not being maintained.

PrintServer.GetPrintQueues Method (EnumeratedPrintQueueTypes[])

Gets the collection of print queues of the specified types that are named in EnumeratedPrintQueueTypes and hosted by the print server.

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

Public Function GetPrintQueues ( _
	enumerationFlag As EnumeratedPrintQueueTypes() _
) As PrintQueueCollection
Dim instance As PrintServer
Dim enumerationFlag As EnumeratedPrintQueueTypes()
Dim returnValue As PrintQueueCollection

returnValue = instance.GetPrintQueues(enumerationFlag)
public PrintQueueCollection GetPrintQueues (
	EnumeratedPrintQueueTypes[] enumerationFlag
public function GetPrintQueues (
	enumerationFlag : EnumeratedPrintQueueTypes[]
) : PrintQueueCollection
Not applicable.



An array of values that represent the types of print queues that are in the collection.

Return Value

The PrintQueueCollection of print queues, of the specified types, on the print server.

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

No code example is currently available or this language may not be supported.

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