SPRole methods

NOTE: This API is now obsolete.

The SPRole type exposes the following members.

Methods

  Name Description
Public method AddGroup Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)
Public method AddUser(SPUser) Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)
Public method AddUser(String, String, String, String) Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveGroup Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)
Public method RemoveUser Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)
Public method ToString Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the ToString method returned the name of the role and is maintained for backward compatibility.) (Overrides Object.ToString().)
Public method Update Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see 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.)

Top

See also

Reference

SPRole class

Microsoft.SharePoint namespace