SPPolicyCollection.Item property (String)

Gets the policy from the collection based on the specified user or group name.

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

Syntax

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

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

Parameters

  • name
    Type: System.String

    A string that specifies the user or group name of the policy, for example, "DOMAIN\user_alias".

Property value

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

See also

Reference

SPPolicyCollection class

SPPolicyCollection members

Item overload

Microsoft.SharePoint.Administration namespace