Provides methods and properties to add, delete, retrieve, set, and manage a member group.
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
'Declaration <SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _ <SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _ Public Class MemberGroup _ Implements IEnumerable
'Usage Dim instance As MemberGroup
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] [SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)] public class MemberGroup : IEnumerable
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 MemberGroup 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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.