Skip to main content
.NET 8.0+

XafApplication.Setup(String, String, String[]) Method

Initializes the newly created XafApplication class instance.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public void Setup(
    string applicationName,
    string connectionString,
    string[] moduleAssemblies
)

Parameters

Name Type Description
applicationName String

A string value that represents the application’s name. This value is assigned to the XafApplication.ApplicationName property.

connectionString String

A string value that represents the application’s connection string. This value is used to create an Object Space Provider and initialize the XafApplication.ObjectSpaceProvider property.

moduleAssemblies String[]

An array of string values that represent names of modules to be used in the application. These modules are added to the module list of the application’s Modules Manager.

Remarks

The Setup() method overload is automatically called in the Main (Session_Start) method after creating the WinApplication or WebApplication object. Leave this method call to initialize the application’s settings by default values and the vaules set via the Application Designer. To set custom values for the XafApplication.ConnectionString property and add additional modules to the XafApplication.Modules list, call this method overload instead. If you do not need to override the default value of the XafApplication.ConnectionString property or add additional modules, pass “” or null (Nothing in VB).

See Also