Compartilhar 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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property OnlyAllowMembersViewMembership As Boolean
    Get
    Set
'Usage
Dim instance As SPGroup
Dim value As Boolean

value = instance.OnlyAllowMembersViewMembership

instance.OnlyAllowMembersViewMembership = value
[ClientCallableAttribute]
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