Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Roles Class
Roles Methods

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Roles Methods

The Roles type exposes the following members.

  NameDescription
Public methodStatic memberAddUsersToRole Adds the specified users to the specified role.
Public methodStatic memberAddUsersToRoles Adds the specified users to the specified roles.
Public methodStatic memberAddUserToRole Adds the specified user to the specified role.
Public methodStatic memberAddUserToRoles Adds the specified user to the specified roles.
Public methodStatic memberCreateRole Adds a new role to the data source.
Public methodStatic memberDeleteCookie Deletes the cookie where role names are cached.
Public methodStatic memberDeleteRoleOverloaded. Removes a role from the data source.
Public methodStatic memberFindUsersInRole Gets a list of users in a specified role where the user name contains the specified user name to match.
Public methodStatic memberGetAllRoles Gets a list of all the roles for the application.
Public methodStatic memberGetRolesForUserOverloaded. Gets a list of the roles that a user is in.
Public methodStatic memberGetUsersInRole Gets a list of users in the specified role.
Public methodStatic memberIsUserInRoleOverloaded. Gets a value indicating whether a user is in the specified role.
Public methodStatic memberRemoveUserFromRole Removes the specified user from the specified role.
Public methodStatic memberRemoveUserFromRoles Removes the specified user from the specified roles.
Public methodStatic memberRemoveUsersFromRole Removes the specified users from the specified role.
Public methodStatic memberRemoveUsersFromRoles Removes the specified user names from the specified roles.
Public methodStatic memberRoleExists Gets a value indicating whether the specified role name already exists in the role data source.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker