Share via


SPPolicyRoleCollection.Item property (String)

Gets the policy role object with the specified name in the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    name As String _
) As SPPolicyRole
    Get
'Usage
Dim instance As SPPolicyRoleCollection
Dim name As String
Dim value As SPPolicyRole

value = instance.Item(name)
public SPPolicyRole this[
    string name
] { get; }

Parameters

  • name
    Type: System.String

    A string that contains the name of the policy role.

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