LocalPrintServer.ConnectToPrintQueue Method (PrintQueue)

 

Connects the local print server to the specified PrintQueue.

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

public bool ConnectToPrintQueue(
	PrintQueue printer
)

Parameters

printer
Type: System.Printing.PrintQueue

The print queue to connect.

Return Value

Type: System.Boolean

true if the connection is made; otherwise false.

Exception Condition
PrintServerException

A print queue that matches the FullName property of the printer is not found.

.NET Framework
Available since 3.0
Return to top
Show: