请注意:此 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, SPRole represented a site group and is maintained for backward compatibility.)
SPRole 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Description | 已过时。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 Description property returned or set the description for the role and is maintained for backward compatibility.) |
![]() |
Groups | 已过时。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 Groups property returned the collection of groups that are assigned to the role and is maintained for backward compatibility.) |
![]() |
ID | 已过时。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 ID property returned the member ID for the role and is maintained for backward compatibility.) (覆盖 SPMember.ID。) |
![]() |
Name | 已过时。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 Name property returned or set the name for the role and is maintained for backward compatibility.) |
![]() |
ParentWeb | 已过时。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 ParentWeb property returned the parent Web site for the role and is maintained for backward compatibility.) |
![]() |
PermissionMask | 已过时。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 PermissionMask property returned or set the permission mask for the role is maintained for backward compatibility.) |
![]() |
Type | 已过时。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 Type property returned the type of the role is maintained for backward compatibility.) |
![]() |
Users | 已过时。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 Users property returned the collection of users that belong to the role and is maintained for backward compatibility.) |
![]() |
Xml | 已过时。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 role in XML format and is maintained for backward compatibility.) |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
AddGroup | 已过时。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 AddGroup method added the specified group to the role and is maintained for backward compatibility.) |
![]() |
AddUser(SPUser) | 已过时。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 AddUser method added the specified user to the role and is maintained for backward compatibility.) |
![]() |
AddUser(String, String, String, String) | 已过时。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 AddUser method added the user specified by user name, e-mail address, display name, and notes to the role and is maintained for backward compatibility.) |
![]() |
Equals | (从 Object 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
RemoveGroup | 已过时。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 RemoveGroup method removed the specified group from the role and is maintained for backward compatibility.) |
![]() |
RemoveUser | 已过时。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 RemoveUser method removed the specified user from the role and is maintained for backward compatibility.) |
![]() |
ToString | 已过时。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 ToString method returned the name of the role and is maintained for backward compatibility.) (覆盖 Object.ToString()。) |
![]() |
Update | 已过时。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 Update method updated the database with changes made to the role and is maintained for backward compatibility.) |
页首
.gif)
.gif)
.gif)