Share via


RetrieveAllRoles Property

The RetrieveAllRoles property of the SPUserCollection class gets or sets a Boolean value that specifies whether to preload the site groups to which every user object in the collection belongs.

Property Value

true to preload the user objects; otherwise, false.

Remarks

Using the RetrieveAllRoles property improves performance but is effective only if the collection of users has not already been loaded--for example, by using the Count property.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security