Represents a collection of role assignments for a securable object.
SPRoleAssignmentCollection 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Count | Gets the number of role assignments in the collection. (覆盖 SPBaseCollection.Count。) |
![]() |
Groups | Gets the groups that directly belong to the access control list (ACL). for this securable object. |
![]() |
Id | Gets the ID of the role assignment collection. |
![]() |
Item | Gets the role assignment at the specified index in the collection. |
![]() |
Parent | 已过时。Gets the parent object that controls the permissions for the object to which the role assignments apply. |
![]() |
ParentSecurableObject | Gets the permissions and role assignments for the collection. |
![]() |
Xml | Gets the role assignment collection in XML format. |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Add(SPPrincipal) | Creates a new role assignment for a specified security principal and gives the security principal guest access to objects in the current scope and in all parent scopes. |
![]() |
Add(SPRoleAssignment) | Adds a role assignment to the collection of role assignment objects. |
![]() |
AddToCurrentScopeOnly | Adds a role assignment to the collection of role assignment objects at the current scope. |
![]() |
Equals | (从 Object 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetAssignmentByPrincipal | Gets the role assignment object based on the specified user or group. |
![]() |
GetEnumerator | 获取要循环访问集合的枚举。 (从 SPBaseCollection 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
GetTypedEnumerator<T> | 返回以循环访问集合的类型安全枚举。 (从 SPBaseCollection 继承。) |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
Remove(Int32) | Removes the user or group at the specified index from the collection. |
![]() |
Remove(SPPrincipal) | Removes the specified user or group from the role assignment collection. |
![]() |
RemoveById | Removes the user or group with the specified identifier (ID) from the role assignment collection. |
![]() |
RemoveFromCurrentScopeOnly | Removes the specified user or group from the current security scope. |
![]() |
ToString | (从 Object 继承。) |
页首
显式 接口 实现
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
ICollection.CopyTo | 将集合中的元素复制到的指定索引处开始的数组。 (从 SPBaseCollection 继承。) |
![]() ![]() |
ICollection.IsSynchronized | 获取一个布尔值,指示集合访问是同步还是线程安全。 (从 SPBaseCollection 继承。) |
![]() ![]() |
ICollection.SyncRoot | 获取用于同步到集合的对象。 (从 SPBaseCollection 继承。) |
页首
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)