共用方式為


SPRoleCollection.Count property

NOTE: This API is now obsolete.

已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Count屬性集合中傳回的角色數目和維護回溯相容性。)。

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

Syntax

'宣告
<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; }

Property value

Type: System.Int32
32 位元的整數,指出角色的數量。

Implements

ICollection.Count

請參閱

參照

SPRoleCollection class

SPRoleCollection members

Microsoft.SharePoint namespace