SPPolicyCollection.Count property

Gets the number of policies in the collection.

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

Syntax

'Declaration
Public ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPPolicyCollection
Dim value As Integer

value = instance.Count
public int Count { get; }

Property value

Type: System.Int32
A 32-bit integer that indicates the number of policies.

See also

Reference

SPPolicyCollection class

SPPolicyCollection members

Microsoft.SharePoint.Administration namespace