LocalPrintServer.DisconnectFromPrintQueue Method (PrintQueue)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Disconnects the local print server from the specified PrintQueue.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public bool DisconnectFromPrintQueue(
	PrintQueue printer
)

Parameters

printer
Type: System.Printing.PrintQueue

The print queue that is being disconnected.

Return Value

Type: System.Boolean

true if the disconnection is successful; otherwise false.

Exception Condition
PrintServerException

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

.NET Framework
Available since 3.0
Return to top
Show: