SPGroup properties

SPGroup properties

The SPGroup type exposes the following members.

  Name Description
Public property AllowMembersEditMembership Gets or sets a Boolean value that specifies whether group members can modify membership in the group.
Public property AllowRequestToJoinLeave Gets or sets a Boolean value that specifies whether to allow users to request membership in the group and to allow users to request to leave the group.
Public property AutoAcceptRequestToJoinLeave Gets or sets a Boolean value that specifies whether users are automatically added or removed when they make a request.
Public property CanCurrentUserEditMembership Gets a Boolean value that indicates whether the current user can modify membership of the group.
Public property CanCurrentUserManageGroup Gets a Boolean value that indicates whether the current user can manage the group.
Public property CanCurrentUserViewMembership Gets a Boolean value that indicates whether the current user can view the member list of the group.
Public property ContainsCurrentUser Gets a Boolean value that indicates whether the group contains the current user, included either through direct or indirect membership.
Public property Description Gets or sets the description for the group.
Public property DistributionGroupAlias Gets the distribution group alias that is associated with the group.
Public property DistributionGroupEmail Gets the email address of the distribution group.
Public property DistributionGroupErrorMessage Gets the most recent error message that was returned by an asynchronous distribution group operation.
Public property DistributionGroupPendingJobData Gets the type and identifier (ID) of the currently pending asynchronous Directory Management Service request.
Public property ExplicitlyContainsCurrentUser Gets a Boolean value that indicates whether the current user has been added explicitly as a direct member of the SharePoint Foundation group, as opposed to indirect membership through a directory group.
Public property ID Gets the identifier (ID) for the group. (Overrides SPPrincipal.ID.)
Public property IsHiddenInUI Gets a value that indicates whether this member should be hidden in the UI. (Inherited from SPPrincipal.)
Public property LoginName Gets the login name of the group. (Overrides SPPrincipal.LoginName.)
Public property Name Gets or sets the name of the group. (Overrides SPPrincipal.Name.)
Public property OnlyAllowMembersViewMembership Gets or sets a Boolean value that specifies whether only group members are allowed to view the list of members in the group.
Public property Owner Gets or sets the owner for the group, which can be a user or another group.
Public property ParentWeb Gets the parent Web site for the principal. (Inherited from SPPrincipal.)
Public property RequestToJoinLeaveEmailSetting Gets or sets the e-mail address to which membership requests are sent.
Public property Roles Obsolete. Gets the collection of roles associated with the principal. (Inherited from SPPrincipal.)
Public property Users Gets a collection of user objects that represents all the users in the group.
Public property Xml Gets the properties of the group as an XML string.
Top
Show:
© 2016 Microsoft