GenericCollection<T>.GetEnumerator method

Returns an generic enumerator that can iterate through the GenericCollection.

Namespace:  Microsoft.SharePoint.Taxonomy.Generic
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Function GetEnumerator As IEnumerator(Of T)
'Usage
Dim instance As GenericCollection
Dim returnValue As IEnumerator(Of T)

returnValue = instance.GetEnumerator()
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public IEnumerator<T> GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<T>
A IEnumerator object for iterating the GenericCollection.

Implements

IEnumerable<T>.GetEnumerator()

Remarks

Implements the foreach statement (For Each in Visual Basic). You should not need to call thismethod directly.

See also

Reference

GenericCollection<T> class

GenericCollection<T> members

Microsoft.SharePoint.Taxonomy.Generic namespace