Share via


SPFarmManagedAccountCollection.GetEnumerator method

Gets an enumerator for the collection.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function GetEnumerator As IEnumerator(Of SPManagedAccount)
'Usage
Dim instance As SPFarmManagedAccountCollection
Dim returnValue As IEnumerator(Of SPManagedAccount)

returnValue = instance.GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public IEnumerator<SPManagedAccount> GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<SPManagedAccount>
An enumerator that supports iteration over a collection.

Implements

IEnumerable<T>.GetEnumerator()

Remarks

Use the enumerator to iterate through the SPFarmManagedAccountCollection.

See also

Reference

SPFarmManagedAccountCollection class

SPFarmManagedAccountCollection members

Microsoft.SharePoint.Administration namespace