'Declaration Public Overridable Function GetEnumerator() As IEnumerator
'Usage Dim instance As WinButtonCollection Dim value As IEnumerator value = instance.GetEnumerator()
public virtual IEnumerator GetEnumerator()
'Declaration Public Overridable Function GetEnumerator() As IEnumerator
'Usage Dim instance As WinButtonCollection Dim value As IEnumerator value = instance.GetEnumerator()
public virtual IEnumerator GetEnumerator()
Enumerators are intended to be used only to read data in the collection. Enumerators cannot be used to modify the underlying collection.
The enumerator does not have exclusive access to the collection.
When an enumerator is created, it takes a snapshot of the current state of the collection. If changes are made to the collection, such as adding, modifying or deleting elements, the snapshot gets out of sync and the enumerator throws an InvalidOperationException. Two enumerators created from the same collection at the same time can have different snapshots of the collection.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2