请注意:此 API 现在已过时。
Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, SPRoleCollection represented a collection of SPRole objects and is maintained for backward compatibility.)
SPRoleCollection 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Count | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Count property returned the number of roles in the collection and is maintained for backward compatibility.). (覆盖 SPBaseCollection.Count。) |
![]() |
Item[Int32] | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Item property returned the role object at the specified index in the collection and is maintained for backward compatibility.) |
![]() |
Item[String] | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Item property returned the role object with the specified name from the collection and is maintained for backward compatibility.) |
![]() |
Web | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Web property returned the parent Web site for the collection of roles and is maintained for backward compatibility.) |
![]() |
Xml | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Xml property returned the collection of roles in XML format and is maintained for backward compatibility.) |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Add | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Add method created a role object with the specified name, description, and permission mask in the collection and is maintained for backward compatibility.) |
![]() |
Equals | (从 Object 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetByID | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the GetByID method returned the role with the specified member ID and is maintained for backward compatibility.) |
![]() |
GetCollection | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the GetCollection method returned the roles specified by an array of names from the collection and is maintained for backward compatibility.) |
![]() |
GetEnumerator | 获取要循环访问集合的枚举。 (从 SPBaseCollection 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetSpecialRole | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the GetCollection method returned a system role specified by its type and is maintained for backward compatibility.) |
![]() |
GetType | (从 Object 继承。) |
![]() |
GetTypedEnumerator<T> | 返回以循环访问集合的类型安全枚举。 (从 SPBaseCollection 继承。) |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
Remove(Int32) | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Remove method removed the role at the specified index in the collection and is maintained for backward compatibility.) |
![]() |
Remove(String) | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Remove method removed the role with the specified name from the collection and is maintained for backward compatibility.) |
![]() |
RemoveByID | 已过时。Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the RemoveByID method removed the role with the specified member ID from the collection and is maintained for backward compatibility.) |
![]() |
ToString | (从 Object 继承。) |
页首
显式 接口 实现
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
ICollection.CopyTo | 将集合中的元素复制到的指定索引处开始的数组。 (从 SPBaseCollection 继承。) |
![]() ![]() |
ICollection.IsSynchronized | 获取一个布尔值,指示集合访问是同步还是线程安全。 (从 SPBaseCollection 继承。) |
![]() ![]() |
ICollection.SyncRoot | 获取用于同步到集合的对象。 (从 SPBaseCollection 继承。) |
页首
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)