.NET Framework Class Library
Roles Methods

The Roles type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAddUsersToRoleAdds the specified users to the specified role.
Public methodStatic memberAddUsersToRolesAdds the specified users to the specified roles.
Public methodStatic memberAddUserToRoleAdds the specified user to the specified role.
Public methodStatic memberAddUserToRolesAdds the specified user to the specified roles.
Public methodStatic memberCreateRoleAdds a new role to the data source.
Public methodStatic memberDeleteCookieDeletes the cookie where role names are cached.
Public methodStatic memberDeleteRoleOverloaded. Removes a role from the data source.
Public methodStatic memberFindUsersInRoleGets a list of users in a specified role where the user name contains the specified user name to match.
Public methodStatic memberGetAllRolesGets 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 memberGetUsersInRoleGets 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 memberRemoveUserFromRoleRemoves the specified user from the specified role.
Public methodStatic memberRemoveUserFromRolesRemoves the specified user from the specified roles.
Public methodStatic memberRemoveUsersFromRoleRemoves the specified users from the specified role.
Public methodStatic memberRemoveUsersFromRolesRemoves the specified user names from the specified roles.
Public methodStatic memberRoleExistsGets a value indicating whether the specified role name already exists in the role data source.
Top
See Also

Reference

Tags :


Page view tracker