SPRoleCollection.Count 属性

请注意:此 API 现在已过时。

Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Count property returned the number of roles in the collection and is maintained for backward compatibility.).

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Overrides ReadOnly Property Count As Integer
    Get
用法
Dim instance As SPRoleCollection
Dim value As Integer

value = instance.Count
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public override int Count { get; }

属性值

类型:System.Int32
32 位整数,指示角色的数量。

实现

ICollection.Count

另请参阅

引用

SPRoleCollection 类

SPRoleCollection 成员

Microsoft.SharePoint 命名空间