共用方式為


SPPolicyRoleCollection.Item property (Int32)

取得集合中的指定索引處的原則角色物件。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPPolicyRole
    Get
'用途
Dim instance As SPPolicyRoleCollection
Dim index As Integer
Dim value As SPPolicyRole

value = instance(index)
public SPPolicyRole this[
    int index
] { get; }

參數

  • index
    Type: System.Int32

    集合中指定之索引的 32 位元整數。

Property value

Type: Microsoft.SharePoint.Administration.SPPolicyRole
表示原則角色SPPolicyRole物件。

請參閱

參照

SPPolicyRoleCollection class

SPPolicyRoleCollection members

Item overload

Microsoft.SharePoint.Administration namespace