Share via


SPFarmManagedAccountCollection.IEnumerable.GetEnumerator Method

Gets an enumerator that iterates 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 SPFarmManagedAccountCollection
Dim returnValue As IEnumerator

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

Return Value

Type: System.Collections.IEnumerator
An enumerator that iterates through the collection.

Implements

IEnumerable.GetEnumerator()

Remarks

This member is an explicit interface member implementation. It can be used only when the SPFarmManagedAccountCollection instance is cast to an IEnumerable interface.

See Also

Reference

SPFarmManagedAccountCollection Class

SPFarmManagedAccountCollection Members

Microsoft.SharePoint.Administration Namespace