Condividi tramite


SPListItemCollection.GetEnumerator Method

Returns an enumerator to iterate through the collection.

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

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