Roles Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPWeb.Roles Property

Windows SharePoint Services 3

NOTE: This API is now obsolete.

Use the RoleDefinitions property to get the collection of role definitions for a Web site. In Windows SharePoint Services 2.0, the Roles property was used to get the collection of site groups on the Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[ObsoleteAttribute("Use the RoleDefinitions property instead")]
public SPRoleCollection Roles { get; }

Property Value

Type: Microsoft.SharePoint.SPRoleCollection
An SPRoleCollection object that represents the site groups.
© 2015 Microsoft