Share via


SPPermissionCollection.Count property

NOTE: This API is now obsolete.

Gets the number of permissions in the collection.

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

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleAssignmentCollection class instead")> _
Public Overrides ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPPermissionCollection
Dim value As Integer

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

Property value

Type: System.Int32
A 32-bit integer that specifies the number of permissions.

Implements

ICollection.Count

See also

Reference

SPPermissionCollection class

SPPermissionCollection members

Microsoft.SharePoint namespace