PrintQueue.Commit Method ()

 

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)

override Commit : unit -> unit

Exception Condition
PrintSystemException

Some of the properties could not be committed.

PrintCommitAttributesException

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
Show: