Provides methods and properties to add, delete, retrieve, set, and manage a member group.
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
This class implements the Microsoft .NET Framework IEnumerable interface, which is required for data binding and iterating collections.
A member group represents a list of members of a group, such as the members of a distribution list (DL), the members of a security group, or the members of a SharePoint site.
The object defines a DL or a Windows SharePoint Services site or any other new member group that you create by using the object model. It defines a URL property, which represents the archive location (the mailto: link) in the case of a DL, or a Windows SharePoint Services site URL, in the case of the MemberGroup object.
The SourceReference property is used by the membership source to uniquely reference the group. For example, the membership source unique reference for Microsoft Active Directory is the distinguished name, and for SharePoint sites, is the ID.
The source type of a membership can be a DL, a SharePoint site, or a custom membership source. For more information, see the MembershipSource enumeration.
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.