The requested page is not available for the requested platform. You are viewing the content for Default platform.

SecurityStrategy.IsGranted(IPermissionRequest) Method

Checks whether the specified operation is allowed.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v19.1.dll


public virtual bool IsGranted(
    IPermissionRequest permissionRequest
Public Overridable Function IsGranted(
    permissionRequest As IPermissionRequest
) As Boolean


Name Type Description
permissionRequest IPermissionRequest

An IPermissionRequest object that specifies the secured operation.


Type Description

true, when the operation is allowed; otherwise - false.


Refer to the Access the Security System in Code topic to see an example.

The passed Permission Request should have an appropriate Permission Request Processor registered within the Security Strategy. To register a Permission Request, handle the SecurityStrategy.CustomizeRequestProcessors event. Refer to the How to: Implement Custom Security Objects (Users, Roles, Operation Permissions) topic to see an example.

See Also