MemberGroupManager.GetEnumerator Method

Returns an enumerator that can iterate through the MemberGroupManager instance.

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


Public Function GetEnumerator As IEnumerator
Dim instance As MemberGroupManager
Dim returnValue As IEnumerator

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

Return Value

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




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


MemberGroupManager Class

MemberGroupManager Members

Microsoft.Office.Server.UserProfiles Namespace