DashboardsModule.AddDashboardDataFromResources<T>(IObjectSpace, String, Assembly, String) Method

Creates a dashboard data object from the specified XML resource file if there is no dashboard data with the specified title parameter in the database.

Namespace: DevExpress.ExpressApp.Dashboards

Assembly: DevExpress.ExpressApp.Dashboards.v18.1.dll

Syntax

public static T AddDashboardDataFromResources<T>(
    IObjectSpace objectSpace,
    string title,
    Assembly assembly,
    string embeddedResourceName
)where T : IDashboardData

Parameters

Type Name Description
IObjectSpace objectSpace

An IObjectSpace object that specifies the Object Space.

String title

A string specifying the dashboard title.

Assembly assembly

An Assembly specifying the assembly which contains the dashboard configuration as an embedded resource.

String embeddedResourceName

A string specifying the embedded resource name which contains the dashboard configuration in XML format.

Returns

Type Description
T

A dashboard data object.

Type Parameters

Name Description
T

To recreate the predefined dashboard, first delete the Dashboard in the DashboardData ListView and then restart the application.

See Also