PrintServer.InstallPrintQueue Method (String, String, String[], String, PrintQueueAttributes, PrintQueueStringProperty, Int32, Int32)

Installs a prioritized print queue, and associated printer driver, on the print server.

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

public PrintQueue InstallPrintQueue(
	string printQueueName,
	string driverName,
	string[] portNames,
	string printProcessorName,
	PrintQueueAttributes printQueueAttributes,
	PrintQueueStringProperty printQueueProperty,
	int printQueuePriority,
	int printQueueDefaultPriority


Type: System.String

The name of the new queue.

Type: System.String

The path and name of the printer driver.

Type: System.String[]

The IDs of the ports that the new queue uses.

Type: System.String

The name of the print processor.

Type: System.Printing.PrintQueueAttributes

The attributes, as flags, of the new queue.

Type: System.Printing.PrintQueueStringProperty

The comment, location, or share name of the new queue.

Type: System.Int32

A value from 1 through 99 that specifies the priority of this print queue relative to other queues that are hosted by the print server.

Type: System.Int32

A value from 1 to 99 that specifies the default priority of print jobs that are sent to the queue.

Return Value

Type: System.Printing.PrintQueue
The newly created PrintQueue.

Use the printQueueProperty parameter to initialize one, and only one, of the queue's ShareName, Comment, or Location properties. If you want to initialize more than one, use the InstallPrintQueue(String, String, String[], String, PrintQueueAttributes, String, String, String, String, Int32, Int32) overload of this method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft