
Custom Role Management Providers
You can also create a custom role-management provider, which allows you to define your own storage for role information or use an existing role-information store. The general strategy is to create a class that inherits the RoleProvider abstract class. The RoleProvider class identifies the methods that your provider defines (which are essentially the same as those in the Roles class).
After you have a custom role provider, you can configure your application to use that provider in the same way that you configure the application to use one of the providers supplied with the .NET Framework. The role management system will then automatically invoke your custom provider and call its methods.
For more information, see Implementing a Role Provider.