Defines the delegate for the RoleManagerModule.GetRoles event of the System.Web.Security.RoleManagerModule class.
- sender
- Documentation for this section has not yet been entered.
- e
- Documentation for this section has not yet been entered.
The System.Web.Security.RoleManagerEventHandler delegate is defined for the RoleManagerModule.GetRoles event of the System.Web.Security.RoleManagerModule class. You can access the RoleManagerModule.GetRoles event of the System.Web.Security.RoleManagerModule class in the Global.asax file for your ASP.NET application as shown in the example for this topic.
You can use the System.Web.Security.RoleManagerEventHandler to replace the creation of the System.Web.Security.RolePrincipal object by the System.Web.Security.RoleManagerModule with your own custom object. To do this, define a delegate using the System.Web.Security.RoleManagerEventHandler and assign it to the RoleManagerModule.GetRoles event of the System.Web.Security.RoleManagerModule.