PrintQueue::Commit Method ()


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

Writes the current properties of the PrintQueue object to the actual print queue on the print server.

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

virtual void Commit() override

Exception Condition

Some of the properties could not be committed.


Some of the properties could not be committed.

- or -

The PrintQueue object was not created with sufficient rights.

Changes that your program makes to the properties of a PrintQueue object do not actually take effect until the program executes the Commit method.

The method requires that the PrintQueue object be created with AdministratePrinter rights.

The following example shows how to use this method while merging two print tickets.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top