共用方式為


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

適用於