Muokkaa

Jaa


PrintServer.DeletePrintQueue Method

Definition

Removes a print queue from the print server.

Overloads

DeletePrintQueue(PrintQueue)

Removes the specified PrintQueue from the print server.

DeletePrintQueue(String)

Removes the print queue with the specified name from the print server.

DeletePrintQueue(PrintQueue)

Removes the specified PrintQueue from the print server.

public:
 static bool DeletePrintQueue(System::Printing::PrintQueue ^ printQueue);
public static bool DeletePrintQueue (System.Printing.PrintQueue printQueue);
static member DeletePrintQueue : System.Printing.PrintQueue -> bool
Public Shared Function DeletePrintQueue (printQueue As PrintQueue) As Boolean

Parameters

printQueue
PrintQueue

The queue that is deleted.

Returns

true if the queue is successfully deleted; otherwise, false.

Applies to

DeletePrintQueue(String)

Removes the print queue with the specified name from the print server.

public:
 static bool DeletePrintQueue(System::String ^ printQueueName);
public static bool DeletePrintQueue (string printQueueName);
static member DeletePrintQueue : string -> bool
Public Shared Function DeletePrintQueue (printQueueName As String) As Boolean

Parameters

printQueueName
String

The name of the queue that is deleted.

Returns

true if the queue is successfully deleted; otherwise, false.

Applies to