SPListItemCollection.GetEnumerator method

Returns an enumerator to iterate through the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function GetEnumerator As IEnumerator
'Usage
Dim instance As SPListItemCollection
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public override IEnumerator GetEnumerator()

Return value

Type: System.Collections.IEnumerator
An IEnumerator object that can be used to iterate through the collection.

Implements

IEnumerable.GetEnumerator()
IEnumerable.GetEnumerator()

See also

Reference

SPListItemCollection class

SPListItemCollection members

Microsoft.SharePoint namespace