共用方式為


SPPolicyCollection.Count Property

Gets the number of policies in the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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