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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As SPPolicyRole
Get
'Usage
Dim instance As SPPolicyRoleCollection
Dim name As String
Dim value As SPPolicyRole
value = instance(name)
public SPPolicyRole this[
string name
] { get; }
Parameters
name
Type: System.StringA string that contains the name of the policy role.
Property Value
Type: Microsoft.SharePoint.Administration.SPPolicyRole
An SPPolicyRole object that represents the policy role.