Compartilhar via


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

Syntax

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

returnValue = instance.GetTypedEnumerator()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.GenericMethod)]
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

Reference

SPBaseCollection Class

SPBaseCollection Members

Microsoft.SharePoint Namespace