Skip to main content
All docs
V25.1
  • .NET 8.0+

    DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    XafApplicationExtensions.GetSecurityStrategy(XafApplication) Method

    Gets a SecurityStrategy instance of an application’s Security System.

    Namespace: DevExpress.ExpressApp.Security

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

    #Declaration

    public static SecurityStrategy GetSecurityStrategy(
        this XafApplication xafApplication
    )

    #Parameters

    Name Type Description
    xafApplication XafApplication

    An XafApplication object that provides methods and properties to manage the current application.

    #Returns

    Type Description
    SecurityStrategy

    A SecurityStrategy object that specifies an application’s Security Strategy.

    #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