SimpleMappingRoleProvider Methods |
The SimpleMappingRoleProvider type exposes the following members.
Name | Description | |
---|---|---|
AddUsersToRoles |
Adds the specified user names to the specified roles for the configured applicationName.
(Overrides RoleProviderAddUsersToRoles(String, String).) | |
CreateRole |
Adds a new role to the data source for the configured applicationName.
(Overrides RoleProviderCreateRole(String).) | |
DeleteRole |
Removes a role from the data source for the configured applicationName.
(Overrides RoleProviderDeleteRole(String, Boolean).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindUsersInRole |
Gets an array of user names in a role where the user name contains the specified user name to match.
(Overrides RoleProviderFindUsersInRole(String, String).) | |
GetAllRoles |
Gets a list of all the roles for the configured applicationName.
(Overrides RoleProviderGetAllRoles.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRolesForUser |
Gets a list of the roles that a specified user is in for the configured applicationName.
(Overrides RoleProviderGetRolesForUser(String).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsersInRole |
Gets a list of users in the specified role for the configured applicationName.
(Overrides RoleProviderGetUsersInRole(String).) | |
Initialize |
Takes as input the name of the provider and a NameValueCollection of configuration settings.
Used to set property values for the provider instance including implementation-specific values
and options specified in the configuration file (Machine.config or Web.config).
(Overrides ProviderBaseInitialize(String, NameValueCollection).) | |
IsUserInRole |
Gets a value indicating whether the specified user is in the specified role for the configured applicationName.
(Overrides RoleProviderIsUserInRole(String, String).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveUser |
Removes a user from a role.
| |
RemoveUsersFromRoles |
Removes the specified user names from the specified roles for the configured applicationName.
(Overrides RoleProviderRemoveUsersFromRoles(String, String).) | |
RoleExists |
Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.
(Overrides RoleProviderRoleExists(String).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |