| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RoleProvider Class.NET Framework version 2.0 Defines the contract that ASP.NET implements to provide role-management services using custom role providers.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | AddUsersToRoles | ( String usernames , String roleNames ) | Void |
| public | CreateRole | ( String roleName ) | Void |
| public | DeleteRole | ( String roleName , Boolean throwOnPopulatedRole ) | Boolean |
| public | FindUsersInRole | ( String roleName , String usernameToMatch ) | String |
| public | GetAllRoles | ( ) | String |
| public | GetRolesForUser | ( String username ) | String |
| public | GetUsersInRole | ( String roleName ) | String |
| public | IsUserInRole | ( String username , String roleName ) | Boolean |
| public | RemoveUsersFromRoles | ( String usernames , String roleNames ) | Void |
| public | RoleExists | ( String roleName ) | Boolean |
ASP.NET role management is designed to enable you to easily use a number of different role providers for your ASP.NET applications. You can use the supplied role providers that are included with the .NET Framework, or you can implement your own provider.
When implementing a custom role provider, you are required to inherit the RoleProvider abstract class.
There are two primary reasons for creating a custom role provider.
RoleManagerModule Class RolePrincipal Class RoleProviderCollection Class Roles Class
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme