Edit

Share via


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);

Parameters

printQueue
PrintQueue

The queue that is deleted.

Returns

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

DeletePrintQueue(String)

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

public static bool DeletePrintQueue(string printQueueName);

Parameters

printQueueName
String

The name of the queue that is deleted.

Returns

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10