Roles Methods
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Web.Security Namespace
Roles Class
Roles Methods
AddUsersToRole Method
AddUsersToRoles Method
AddUserToRole Method
AddUserToRoles Method
CreateRole Method
DeleteCookie Method
DeleteRole Method
FindUsersInRole Method
GetAllRoles Method
GetRolesForUser Method
GetUsersInRole Method
IsUserInRole Method
RemoveUserFromRole Method
RemoveUserFromRoles Method
RemoveUsersFromRole Method
RemoveUsersFromRoles Method
RoleExists Method
Roles Class
Roles Members
Roles Methods
Roles Properties
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
Roles Methods
The
Roles
type exposes the following members.
Methods
Name
Description
AddUsersToRole
Adds the specified users to the specified role.
AddUsersToRoles
Adds the specified users to the specified roles.
AddUserToRole
Adds the specified user to the specified role.
AddUserToRoles
Adds the specified user to the specified roles.
CreateRole
Adds a new role to the data source.
DeleteCookie
Deletes the cookie where role names are cached.
DeleteRole
Overloaded.
Removes a role from the data source.
FindUsersInRole
Gets a list of users in a specified role where the user name contains the specified user name to match.
GetAllRoles
Gets a list of all the roles for the application.
GetRolesForUser
Overloaded.
Gets a list of the roles that a user is in.
GetUsersInRole
Gets a list of users in the specified role.
IsUserInRole
Overloaded.
Gets a value indicating whether a user is in the specified role.
RemoveUserFromRole
Removes the specified user from the specified role.
RemoveUserFromRoles
Removes the specified user from the specified roles.
RemoveUsersFromRole
Removes the specified users from the specified role.
RemoveUsersFromRoles
Removes the specified user names from the specified roles.
RoleExists
Gets a value indicating whether the specified role name already exists in the role data source.
Top
See Also
Reference
Roles Class
System.Web.Security Namespace
Tags :