Rediger

Del via


LocalPrintServer.DisconnectFromPrintQueue Method

Definition

Disconnects a print queue from the local print server.

Overloads

DisconnectFromPrintQueue(PrintQueue)

Disconnects the local print server from the specified PrintQueue.

DisconnectFromPrintQueue(String)

Disconnects from the print queue that is specified in the String.

DisconnectFromPrintQueue(PrintQueue)

Disconnects the local print server from the specified PrintQueue.

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

Parameters

printer
PrintQueue

The print queue that is being disconnected.

Returns

true if the disconnection is successful; otherwise false.

Exceptions

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

Applies to

DisconnectFromPrintQueue(String)

Disconnects from the print queue that is specified in the String.

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

Parameters

printQueuePath
String

The full path to the print queue that is disconnected.

Returns

true if the disconnection is successful; otherwise false.

Exceptions

A print queue with the specified path is not found.

Applies to