Group. Get Enumerator Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an enumerator that can iterate through the MemberGroup instance.
public: virtual System::Collections::IEnumerator ^ GetEnumerator();
public System.Collections.IEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IEnumerator override this.GetEnumerator : unit -> System.Collections.IEnumerator
Public Function GetEnumerator () As IEnumerator
An IEnumerator interface used to iterate the MemberGroup 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.