Export (0) Print
Expand All

PrinterSettings.PrinterResolutionCollection.GetEnumerator Method

Returns an enumerator that can iterate through the collection.

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

This method instantiates an enumerator that takes a snapshot of the current state of the collection. The enumerator does not have exclusive access to the collection, so multiple enumerators can have access to the same collection at the same time. Therefore, any changes made to the collection, either directly or through another enumerator, can cause Current or MoveNext to throw an exception.

Two enumerators instantiated from the same collection at the same time can contain different snapshots of the collection.

Removing objects from the enumerator also removes them from the collection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft