Share via


SPGroup.OnlyAllowMembersViewMembership property

Gets or sets a Boolean value that specifies whether only group members are allowed to view the list of members in the group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property OnlyAllowMembersViewMembership As Boolean
    Get
    Set
'Usage
Dim instance As SPGroup
Dim value As Boolean

value = instance.OnlyAllowMembersViewMembership

instance.OnlyAllowMembersViewMembership = value
public bool OnlyAllowMembersViewMembership { get; set; }

Property value

Type: System.Boolean
true to allow only group members to view the list of members; otherwise, false.

See also

Reference

SPGroup class

SPGroup members

Microsoft.SharePoint namespace