共用方式為


SPPolicyCollection.Item Property (Int32)

Gets the policy at the specified index in the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPPolicy
    Get
'Usage
Dim instance As SPPolicyCollection
Dim index As Integer
Dim value As SPPolicy

value = instance(index)
public SPPolicy this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index of the policy.

Property Value

Type: Microsoft.SharePoint.Administration.SPPolicy
An SPPolicy object that represents the policy.

See Also

Reference

SPPolicyCollection Class

SPPolicyCollection Members

Item Overload

Microsoft.SharePoint.Administration Namespace