Share via


SPPolicy.SPPolicyRoleBindingCollection.Item property (SPPolicyRole)

Gets the policy role for the specified policy role.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    policyRole As SPPolicyRole _
) As SPPolicyRole
    Get
'Usage
Dim instance As SPPolicy.SPPolicyRoleBindingCollection
Dim policyRole As SPPolicyRole
Dim value As SPPolicyRole

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

Parameters

Property value

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

Remarks

If the parameter policyRole is empty, an ArgumentNullException will be thrown.

See also

Reference

SPPolicy.SPPolicyRoleBindingCollection class

SPPolicy.SPPolicyRoleBindingCollection members

Item overload

Microsoft.SharePoint.Administration namespace