PrintQueue.Refresh Method ()


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

Updates the properties of the PrintQueue object with values from the printer and the print queue utility that runs on the computer.

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

override Refresh : unit -> unit

Exception Condition

Some of the properties could not be refreshed.

Changes your program makes to a PrintQueue object's properties are lost when Refresh executes, unless they have been written to the printer and print queue with Commit.

The following example shows how to use this method as part of a survey all printers for possible error status.

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

.NET Framework
Available since 3.0
Return to top