Partilhar via


SPElementDefinitionCollection.IEnumerable.GetEnumerator Method

Gets an enumerator to iterate through the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Private Function GetEnumerator As IEnumerator
    Implements IEnumerable.GetEnumerator
'Usage
Dim instance As SPElementDefinitionCollection
Dim returnValue As IEnumerator

returnValue = CType(instance, IEnumerable).GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
IEnumeratorIEnumerable.GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
An object that can enumerate the members of the collection.

Implements

IEnumerable.GetEnumerator()

See Also

Reference

SPElementDefinitionCollection Class

SPElementDefinitionCollection Members

Microsoft.SharePoint.Administration Namespace