This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns an enumerator that can iterate through the collection.
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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.