LocalPrintServer::ConnectToPrintQueue Method (String^)

 
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.

Connects to the print queue that is specified by using the String.

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

public:
bool ConnectToPrintQueue(
	String^ printQueuePath
)

Parameters

printQueuePath
Type: System::String^

The full path of the print queue that is being connected.

Return Value

Type: System::Boolean

true if the connection is made; otherwise false.

Exception Condition
PrintServerException

A print queue with the specified path is not found.

.NET Framework
Available since 3.0
Return to top
Show: