共用方式為


SPPolicy.SPPolicyRoleBindingCollection class

代表處理每個使用者或群組繫結至原則原則角色的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.Administration.SPPolicy.SPPolicyRoleBindingCollection

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

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPPolicyRoleBindingCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPPolicy.SPPolicyRoleBindingCollection
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPPolicyRoleBindingCollection : SPBaseCollection

備註

每個使用者或群組指定給使用原則角色繫結集合的原則角色。此集合會傳回原則角色,但不會定義的原則角色存在。

使用SPPolicy類別之PolicyRoleBindings屬性可傳回原則角色繫結的集合。若要建立的原則角色集合中,使用AddAddById方法。

使用索引器角色繫結集合中傳回單一原則角色。例如,若集合已指派給變數myPolicyRoleBindings,使用myPolicyRoleBindings[index]以 C# 或 Visual Basic.NET,其中index是原則角色集合中的索引編號,或是SPPolicyRole物件中的myPolicyRoleBindings(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.

請參閱

參照

SPPolicy.SPPolicyRoleBindingCollection members

Microsoft.SharePoint.Administration namespace