Share via


SPPolicyRoleCollection.Item Property (Int32)

Gets the policy role object 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 SPPolicyRole
    Get
'Usage
Dim instance As SPPolicyRoleCollection
Dim index As Integer
Dim value As SPPolicyRole

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index in the collection.

Property Value

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

See Also

Reference

SPPolicyRoleCollection Class

SPPolicyRoleCollection Members

Item Overload

Microsoft.SharePoint.Administration Namespace