Skip to main content
.NET 6.0+

IsGrantedAdapter.Enable(ISecurityAdapterProvider, ReloadPermissionStrategy) Method

Enables the specified Security Adapter using the selected mode of reloading the security permissions.

Namespace: DevExpress.ExpressApp.Security.Adapters

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

Declaration

public static void Enable(
    ISecurityAdapterProvider securityAdapterProviders,
    ReloadPermissionStrategy reloadPermissionStrategy
)

Parameters

Name Type Description
securityAdapterProviders DevExpress.ExpressApp.Security.Adapters.ISecurityAdapterProvider

An ISecurityAdapterProvider object specifying the Security Adapter Provider.

reloadPermissionStrategy ReloadPermissionStrategy

An ReloadPermissionStrategy enumeration value specifying the mode of reloading the security permissions.

Remarks

To register or customize Security Adapters, pass an instance of the corresponding Security Adapter Provider to the Enable method. An example of using this method is provided in the Security Permissions Caching topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Enable(ISecurityAdapterProvider, ReloadPermissionStrategy) 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