다음을 통해 공유


GenericCollection<T>.IEnumerable.GetEnumerator Method

Returns a 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")> _
Private Function GetEnumerator As IEnumerator
    Implements IEnumerable.GetEnumerator
'Usage
Dim instance As GenericCollection
Dim returnValue As IEnumerator

returnValue = CType(instance, IEnumerable).GetEnumerator()
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
IEnumeratorIEnumerable.GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
A IEnumerator object for iterating the GenericCollection

Implements

IEnumerable.GetEnumerator()

Remarks

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

Implements the [M:System.Collections.Generic.IEnumerable(T).GetEnumerator] method.

See Also

Reference

GenericCollection<T> Class

GenericCollection<T> Members

Microsoft.SharePoint.Taxonomy.Generic Namespace