共用方式為


SPPolicyRoleCollection.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 SPPolicyRoleCollection
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

SPPolicyRoleCollection Class

SPPolicyRoleCollection Members

Microsoft.SharePoint.Administration Namespace