SPElementDefinitionCollection.System.Collections.IEnumerable.GetEnumerator, méthode (Microsoft.SharePoint.Administration)

Windows SharePoint Services 3
Gets an enumerator with which to iterate through the collection.

Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

Valeur retournée

Returns IEnumerator that can be used to iterate through the collection.

The foreach statement of the C# language (For Each in Visual Basic) hides the complexity of the enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.