Visual Guard Class Library Documentation

VGHttpModule.VGPermissionsLoadingEventHandler Event

A global application event that is raised when the VGHttpModule is loading permissions for a user.

public event VGPermissionsLoadingEventHandler PermissionLoading;

Event Data

The event handler receives an argument of type VGPermissionsLoadingEventArgs containing data related to this event. The following VGPermissionsLoadingEventArgs properties provide information specific to this event.

Property Description
Identity Gets the IIdentity representing the user for which the permission will be loaded.
RepositoryId Gets the Visual Guard Repository Id of the user for which the permission will be loaded.
Roles Gets or sets the list of VGGrantedRole corresponding to roles granted to the user.
Status Gets or sets the VGAuthorizationStatus representing the status of the current authorization process.

Remarks

You can use this event to filter the list of user's roles or to change the status of the current authorization process.

You can specify a handler for the PermissionLoading event by adding a public subroutine named VGModule_PermissionLoading to the Global.asax file.

See Also

VGHttpModule Class | Novalys.VisualGuard.Security.WebForm Namespace