Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SecurityStrategy.IsGranted(IPermissionRequest) Method

Checks whether the specified operation is allowed.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v24.2.dll

#Declaration

public virtual bool IsGranted(
    IPermissionRequest permissionRequest
)

#Parameters

Name Type Description
permissionRequest IPermissionRequest

An IPermissionRequest object that specifies the secured operation.

#Returns

Type Description
Boolean

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

#Remarks

Tip

You can also use the IsGrantedExtensions class methods to check if the specified operation is allowed. These methods do not require an IPermissionRequest object.

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