Skip to main content
.NET Framework 4.5.2+

SecuritySystem.IsGranted(IPermissionRequest) Method

Checks whether or not the current user is allowed to execute the specified secured operation.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public static bool IsGranted(
    IPermissionRequest permissionRequest
)

Parameters

Name Type Description
permissionRequest IPermissionRequest

An IPermissionRequest object that specifies the secured operation.

Returns

Type Description
Boolean

true, if the user can execute the secured operation; otherwise - false.

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsGranted(IPermissionRequest) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also