SPWeb.RoleDefinitions Property

Gets the collection of role definitions for the website.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property RoleDefinitions As SPRoleDefinitionCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPRoleDefinitionCollection

value = instance.RoleDefinitions
[ClientCallableAttribute]
public SPRoleDefinitionCollection RoleDefinitions { get; }

Property Value

Type: Microsoft.SharePoint.SPRoleDefinitionCollection
An SPRoleDefinitionCollection object that represents the role definitions.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace