Share via


MemberGroupManager.GetEnumerator Method

Returns an enumerator that can iterate through the MemberGroupManager instance.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Overrides Function GetEnumerator As IEnumerator
'Usage
Dim instance As MemberGroupManager
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public override IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
An IEnumerator interface that is used to iterate through the MemberGroupManager object.

Implements

IEnumerable.GetEnumerator()

Remarks

GetEnumerator is a method that implements the foreach statement (For Each in Microsoft Visual Basic). You do not need to call this method directly. This method implements the Microsoft .NET Framework IEnumerable.GetEnumerator method. See the .NET Framework SDK for documentation about the IEnumerable.GetEnumerator method.

For more information about types of membership groups, see Memberships Overview. For a code example about how to create a member group and add a member to the newly created group, see How to: Create Memberships.

See Also

Reference

MemberGroupManager Class

MemberGroupManager Members

GetEnumerator Overload

Microsoft.Office.Server.UserProfiles Namespace