Skip to main content
.NET Framework 4.5.2+

XafApplication.Security Property

Provides access to the Security Strategy used in the application.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


public ISecurityStrategyBase Security { get; set; }

Property Value

Type Description

An object that is the ISecurityStrategyBase Security Strategy.


If you need to configure a Security System via built-in classes, use the Application Designer. To create a custom Security Strategy or Authentication Type, set the Security property in code:

static class Program {
   // ... 
   public static void Main() {
      // ... 
      MySolutionWindowsFormsApplication application = new MySolutionWindowsFormsApplication();
      application.Security = new MySecurityStrategy<User, Role>(new MyAuthenticationStrategy<User, 
      // ... 
      // ... 

For details on the Security System supplied by XAF, refer to the Security System Overview topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Security property.


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.

See Also