XafApplicationExtensions.GetSecurityStrategy(XafApplication) Method
In This Article
Gets a SecurityStrategy instance of an application’s Security System.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Security
#Declaration
public static SecurityStrategy GetSecurityStrategy(
this XafApplication xafApplication
)
#Parameters
Name | Type | Description |
---|---|---|
xaf |
Xaf |
An Xaf |
#Returns
Type | Description |
---|---|
Security |
A Security |
#Remarks
The following example uses this method.
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Security;
// ...
public class SecurityStrategyController : ViewController {
protected override void OnActivated() {
base.OnActivated();
SecurityStrategy securityStrategy = Application.GetSecurityStrategy();
// ...
}
}
Refer to the IsGrantedExtensions class methods for more examples.
See Also