This documentation is archived and is not being maintained.

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

Installs a 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
)
public PrintQueue InstallPrintQueue (
	String printQueueName, 
	String driverName, 
	String[] portNames, 
	String printProcessorName, 
	PrintQueueAttributes printQueueAttributes
)
public function InstallPrintQueue (
	printQueueName : String, 
	driverName : String, 
	portNames : String[], 
	printProcessorName : String, 
	printQueueAttributes : PrintQueueAttributes
) : PrintQueue
Not applicable.

Parameters

printQueueName

The name of the new queue.

driverName

The path and name of the printer driver.

portNames

The IDs of the ports that the new queue uses.

printProcessorName

The name of the print processor.

printQueueAttributes

The attributes, as flags, of the new queue.

Return Value

The newly created PrintQueue.

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
Show: