SPBaseCollection.GetTypedEnumerator<T> method
Returns a type-safe enumerator to iterate through the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
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()
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.