Partilhar via


SPMemberCollection.RetrieveAllRoles Property

Gets or sets a Boolean value that specifies whether to preload roles for users to increase performance.

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

Syntax

'Declaration
Public Property RetrieveAllRoles As Boolean
    Get
    Set
'Usage
Dim instance As SPMemberCollection
Dim value As Boolean

value = instance.RetrieveAllRoles

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

Property Value

Type: System.Boolean
true to preload roles to increase performance; otherwise, false.

See Also

Reference

SPMemberCollection Class

SPMemberCollection Members

Microsoft.SharePoint Namespace