PrintServer.DeletePrintQueue 方法

定义

从打印服务器中移除打印队列。

重载

DeletePrintQueue(PrintQueue)

从打印服务器中移除指定的 PrintQueue

DeletePrintQueue(String)

从打印服务器中移除具有指定名称的打印队列。

DeletePrintQueue(PrintQueue)

从打印服务器中移除指定的 PrintQueue

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

参数

printQueue
PrintQueue

已删除的队列。

返回

如果队列已成功删除,则为 true;否则为 false

适用于

DeletePrintQueue(String)

从打印服务器中移除具有指定名称的打印队列。

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

参数

printQueueName
String

已删除的队列的名称。

返回

如果队列已成功删除,则为 true;否则为 false

适用于