System.Web.Security.RoleManagerEventHandler Delegate

Defines the delegate for the RoleManagerModule.GetRoles event of the System.Web.Security.RoleManagerModule class.

Syntax

public delegate void RoleManagerEventHandler (object sender, RoleManagerEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

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.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0