Back to Devexpress

SecurityStrategy.PermissionsReloadMode Property

expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-4fb057b9.md

latest3.1 KB
Original Source

SecurityStrategy.PermissionsReloadMode Property

Specifies the mode of reloading the security permissions.

Namespace : DevExpress.ExpressApp.Security

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

NuGet Package : DevExpress.ExpressApp.Security

Declaration

csharp
public PermissionsReloadMode PermissionsReloadMode { get; set; }
vb
Public Property PermissionsReloadMode As PermissionsReloadMode

Property Value

TypeDescription
PermissionsReloadMode

A PermissionsReloadMode value specifying the mode of reloading the security permissions.

|

Available values:

NameDescription
NoCache

Each Session (in XPO) or DBContext (in Entity Framework Core) operates with the most recent permissions loaded from the database.

| | CacheOnFirstAccess |

Permissions are loaded and cached when the corresponding secured data is accessed for the first time. Cached permissions are used until the user is logged off. This mode significantly reduces the number of database requests when working with secured data.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PermissionsReloadMode property.

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.

connect-winforms-grid-to-backend-using-middletier-server/VB/MiddleTier.Server/Startup.vb#L118

vb
Dim securityStrategyImpl As SecurityStrategy = CType(securityStrategy, SecurityStrategy)
    securityStrategyImpl.PermissionsReloadMode = PermissionsReloadMode.CacheOnFirstAccess
End Sub

See Also

SecurityStrategy Class

SecurityStrategy Members

DevExpress.ExpressApp.Security Namespace