Επεξεργασία

Κοινή χρήση μέσω


LocalPrintServer.ConnectToPrintQueue Method

Definition

Connects a print queue to the local print server.

Overloads

ConnectToPrintQueue(PrintQueue)

Connects the local print server to the specified PrintQueue.

ConnectToPrintQueue(String)

Connects to the print queue that is specified by using the String.

ConnectToPrintQueue(PrintQueue)

Connects the local print server to the specified PrintQueue.

public:
 bool ConnectToPrintQueue(System::Printing::PrintQueue ^ printer);
public bool ConnectToPrintQueue (System.Printing.PrintQueue printer);
member this.ConnectToPrintQueue : System.Printing.PrintQueue -> bool
Public Function ConnectToPrintQueue (printer As PrintQueue) As Boolean

Parameters

printer
PrintQueue

The print queue to connect.

Returns

true if the connection is made; otherwise false.

Exceptions

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

Applies to

ConnectToPrintQueue(String)

Connects to the print queue that is specified by using the String.

public:
 bool ConnectToPrintQueue(System::String ^ printQueuePath);
public bool ConnectToPrintQueue (string printQueuePath);
member this.ConnectToPrintQueue : string -> bool
Public Function ConnectToPrintQueue (printQueuePath As String) As Boolean

Parameters

printQueuePath
String

The full path of the print queue that is being connected.

Returns

true if the connection is made; otherwise false.

Exceptions

A print queue with the specified path is not found.

Applies to