expressappframework-devexpress-dot-expressapp-dot-securitysystem-502bd933.md
Gets the instance of the Security Strategy.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public static ISecurityStrategyBase Instance { get; }
Public Shared ReadOnly Property Instance As ISecurityStrategyBase
| Type | Description |
|---|---|
| ISecurityStrategyBase |
An ISecurityStrategyBase object which is the Security Strategy used by the Security System.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Instance 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.
public object Evaluate(params object[] operands) {
return CurrentOrgIdFunctionCore(SecuritySystem.Instance);
}
exportController.ExportAction.Executing += ExportAction_Executing;
if(SecuritySystem.Instance is IRequestSecurity) {
exportController.Active.SetItemValue("Security",
controller.ExportAction.Executing += ExportAction_Executing;
if(SecuritySystem.Instance is IRequestSecurity) {
controller.Active.SetItemValue("Security",
AddHandler exportController.ExportAction.Executing, AddressOf ExportAction_Executing
If TypeOf SecuritySystem.Instance Is IRequestSecurity Then
exportController.Active.SetItemValue("Security", SecuritySystem.IsGranted(New ExportPermissionRequest(View.ObjectTypeInfo.Type)))
AddHandler controller.ExportAction.Executing, AddressOf ExportAction_Executing
If TypeOf SecuritySystem.Instance Is IRequestSecurity Then
controller.Active.SetItemValue("Security", SecuritySystem.IsGranted(New ExportPermissionRequest()))
See Also