共用方式為


SPWeb.RoleDefinitions Property

Gets the collection of role definitions for the Web site.

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

Syntax

Public ReadOnly Property RoleDefinitions As SPRoleDefinitionCollection
    Get

Dim instance As SPWeb
Dim value As SPRoleDefinitionCollection

value = instance.RoleDefinitions
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