Compartilhar via


SPGroup.CanCurrentUserViewMembership Property

Gets a Boolean value that indicates whether the current user can view the member list of the group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve := True)> _
Public ReadOnly Property CanCurrentUserViewMembership As Boolean
    Get
'Usage
Dim instance As SPGroup
Dim value As Boolean

value = instance.CanCurrentUserViewMembership
[ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve = true)]
public bool CanCurrentUserViewMembership { get; }

Property Value

Type: System.Boolean
true if the current user can view the member list of the group; otherwise, false.

See Also

Reference

SPGroup Class

SPGroup Members

Microsoft.SharePoint Namespace