The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication.Security Property

Provides access to the Security Strategy used in the application.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[Browsable(false)]
public ISecurityStrategyBase Security { get; set; }
<Browsable(False)>
Public Property Security As ISecurityStrategyBase
[Browsable(false)]
public ISecurityStrategyBase Security { get; set; }
<Browsable(False)>
Public Property Security As ISecurityStrategyBase
[Browsable(false)]
public ISecurityStrategyBase Security { get; set; }
<Browsable(False)>
Public Property Security As ISecurityStrategyBase

Property Value

Type Description
DevExpress.ExpressApp.Security.ISecurityStrategyBase

An object that is the ISecurityStrategyBase Security Strategy.

Property Value

Type Description
DevExpress.ExpressApp.Security.ISecurityStrategyBase

An object that is the ISecurityStrategyBase Security Strategy.

Property Value

Type Description
DevExpress.ExpressApp.Security.ISecurityStrategyBase

An object that is the ISecurityStrategyBase Security Strategy.

Remarks

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, 
         AuthenticationStandardLogonParameters>())
      // ... 
      application.Setup();
      application.Start();
      // ... 
   }
}

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

See Also