SPRoleAssignmentCollection 成员

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 继承。)

页首

另请参阅

引用

SPRoleAssignmentCollection 类

Microsoft.SharePoint 命名空间