共用方式為


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance(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