expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-4fb057b9.md
Specifies the mode of reloading the security permissions.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
public PermissionsReloadMode PermissionsReloadMode { get; set; }
Public Property PermissionsReloadMode As PermissionsReloadMode
| Type | Description |
|---|---|
| PermissionsReloadMode |
A PermissionsReloadMode value specifying the mode of reloading the security permissions.
|
Available values:
| Name | Description |
|---|---|
| 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
Dim securityStrategyImpl As SecurityStrategy = CType(securityStrategy, SecurityStrategy)
securityStrategyImpl.PermissionsReloadMode = PermissionsReloadMode.CacheOnFirstAccess
End Sub
See Also