共用方式為


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.String

    A string that contains the name of the policy role.

Property Value

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

See Also

Reference

SPPolicyRoleCollection Class

SPPolicyRoleCollection Members

Item Overload

Microsoft.SharePoint.Administration Namespace