共用方式為


SPRoleAssignmentCollection members

Include protected members
Include inherited members

表示可保護物件的角色指派的集合。

The SPRoleAssignmentCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的角色指派的數目。 (Overrides SPBaseCollection.Count.)
Public property Groups 取得存取控制清單 (ACL) 直接隸屬的群組。此安全的物件。
Public property Id 取得角色指派集合 ID。
Public property Item 取得集合指定索引處的角色指派。
Public property Parent Obsolete. 取得控制角色指派所套用的物件的權限的父物件。
Public property ParentSecurableObject 取得權限和集合的角色指派。
Public property Xml 取得角色指派集合以 XML 格式。

Top

Methods

  Name Description
Public method Add(SPPrincipal) 建立新的角色指派指定的安全性主體,並讓物件在目前的範圍和所有父範圍中的安全性主體的來賓存取權。
Public method Add(SPRoleAssignment) 新增角色指派至角色指派物件的集合。
Public method AddToCurrentScopeOnly 新增角色指派在目前的範圍內的角色指派物件的集合。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAssignmentByPrincipal 取得根據指定的使用者或群組的角色指派物件。
Public method GetEnumerator 取得列舉值來逐一查看集合。 (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> 傳回逐一查看集合的型別安全列舉值。 (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Int32) 從集合中移除使用者或群組中指定索引處。
Public method Remove(SPPrincipal) 從角色指派集合中移除指定的使用者或群組。
Public method RemoveById 從角色指派集合中移除使用者或群組具有指定識別項 (ID)。
Public method RemoveFromCurrentScopeOnly 從目前的安全性範圍中移除指定的使用者或群組。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo 陣列,指定的陣列索引處開始複製集合的項目。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized 取得布林值,這個值,指出對集合的存取是否同步處理或安全執行緒。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot 取得用於同步化存取集合的物件。 (Inherited from SPBaseCollection.)

Top

請參閱

參照

SPRoleAssignmentCollection class

Microsoft.SharePoint namespace