SPBaseCollection.GetTypedEnumerator<T> Method

Returns a type-safe enumerator to iterate through the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online


<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.GenericMethod)> _
Public Function GetTypedEnumerator(Of T As Class) As IEnumerator(Of T)
Dim instance As SPBaseCollection
Dim returnValue As IEnumerator(Of T)

returnValue = instance.GetTypedEnumerator()
public IEnumerator<T> GetTypedEnumerator<T>()
where T : class

Type Parameters

  • T
    The type of object contained in the collection.

Return Value

Type: System.Collections.Generic.IEnumerator<T>
An IEnumerator<T> object for iterating through the collection.

See Also


SPBaseCollection Class

SPBaseCollection Members

Microsoft.SharePoint Namespace