SPWeb.Roles 属性
请注意:此 API 现在已过时。
Use the RoleDefinitions property to get the collection of role definitions for a website. In Windows SharePoint Services 2.0, the Roles property was used to get the collection of site groups on the website.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Use the RoleDefinitions property instead")> _
Public ReadOnly Property Roles As SPRoleCollection
Get
用法
Dim instance As SPWeb
Dim value As SPRoleCollection
value = instance.Roles
[ObsoleteAttribute("Use the RoleDefinitions property instead")]
public SPRoleCollection Roles { get; }
属性值
类型:Microsoft.SharePoint.SPRoleCollection
An SPRoleCollection object that represents the site groups.