Export (0) Print
Expand All

Roles Methods

The Roles type exposes the following members.

  Name Description
Public method Static member AddUsersToRole Adds the specified users to the specified role.
Public method Static member AddUsersToRoles Adds the specified users to the specified roles.
Public method Static member AddUserToRole Adds the specified user to the specified role.
Public method Static member AddUserToRoles Adds the specified user to the specified roles.
Public method Static member CreateRole Adds a new role to the data source.
Public method Static member DeleteCookie Deletes the cookie where role names are cached.
Public method Static member DeleteRole(String) Removes a role from the data source.
Public method Static member DeleteRole(String, Boolean) Removes a role from the data source.
Public method Static member FindUsersInRole Gets a list of users in a specified role where the user name contains the specified user name to match.
Public method Static member GetAllRoles Gets a list of all the roles for the application.
Public method Static member GetRolesForUser() Gets a list of the roles that the currently logged-on user is in.
Public method Static member GetRolesForUser(String) Gets a list of the roles that a user is in.
Public method Static member GetUsersInRole Gets a list of users in the specified role.
Public method Static member IsUserInRole(String) Gets a value indicating whether the currently logged-on user is in the specified role.
Public method Static member IsUserInRole(String, String) Gets a value indicating whether the specified user is in the specified role.
Public method Static member RemoveUserFromRole Removes the specified user from the specified role.
Public method Static member RemoveUserFromRoles Removes the specified user from the specified roles.
Public method Static member RemoveUsersFromRole Removes the specified users from the specified role.
Public method Static member RemoveUsersFromRoles Removes the specified user names from the specified roles.
Public method Static member RoleExists Gets a value indicating whether the specified role name already exists in the role data source.
Top
Show:
© 2014 Microsoft