.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IPermissionRequest Interface

Declares members implemented by Permission Request classes.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.v20.2.dll

Declaration

public interface IPermissionRequest
Public Interface IPermissionRequest

Remarks

The Security System uses Permission Requests to determine whether or not a permission is granted. Objects of the IPermissionRequest type can be passed to the SecurityStrategy.IsGranted and SecuritySystem.Demand methods when it is required to check a permission in code.

To add a custom Permission Request, declare a class that implements the IPermissionRequest interface, or inherit the OperationPermissionRequestBase class (see How to: Implement Custom Security Objects (Users, Roles, Operation Permissions)).

TIP

You can also use the IsGrantedExtensions class methods to check whether or not a permission is granted. These methods do not require an IPermissionRequest object.

See Also