Share via


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)

Syntax

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

value = instance.Item(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