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.