Share via


RetrieveAllRoles Property

The RetrieveAllRoles property of the SPGroupCollection class gets or sets a Boolean value that specifies whether to preload the site groups to which every cross-site group in the collection belongs.

Property Value

true to preload the site groups; otherwise, false.

Remarks

Using the RetrieveAllRoles property improves performance but is effective only if the collection of cross-site groups is not already loaded (for example, by using the Count property).

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security