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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
policyRole As SPPolicyRole _
) As SPPolicyRole
Get
'Usage
Dim instance As SPPolicy.SPPolicyRoleBindingCollection
Dim policyRole As SPPolicyRole
Dim value As SPPolicyRole
value = instance(policyRole)
public SPPolicyRole this[
SPPolicyRole policyRole
] { get; }
Parameters
policyRole
Type: Microsoft.SharePoint.Administration.SPPolicyRoleAn SPPolicyRole object that represents the policy role for which to get the policy role.
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