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

Initializes the newly created XafApplication class instance.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

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

Parameters

Type Name Description
String applicationName

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

String connectionString

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.

String[] moduleAssemblies

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.

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