共用方式為


SPRoleDefinitionBindingCollection class

定義繫結至角色指派物件的角色定義。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPRoleDefinitionBindingCollection

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

Syntax

'宣告
Public NotInheritable Class SPRoleDefinitionBindingCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPRoleDefinitionBindingCollection
public sealed class SPRoleDefinitionBindingCollection : SPBaseCollection

備註

如果使用者擁有Full Control與Contribute角色,使用者的角色指派會包含這些兩個角色定義繫結集合的角色定義中。

若要取得繫結至角色指派的角色定義的集合,請使用SPRoleAssignment類別的 [ RoleDefinitionBindings ] 屬性。使用Add方法來加入至集合的角色定義。

使用索引子來從集合傳回單一項目。例如,如果集合指派給一個名為myRoleDefinitionBindings變數,用於myRoleDefinitionBindings[index] C# 或myRoleDefinitionBindings(index)在 Visual Basic,其中index是集合中項目的索引數字或字串,其中包含角色定義的名稱。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPRoleDefinitionBindingCollection members

Microsoft.SharePoint namespace