Skip to main content
.NET Framework 4.5.2+

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.v24.1.dll

Declaration

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

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that specifies the Object Space.

title String

A string specifying the dashboard title.

assembly Assembly

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

embeddedResourceName String

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

Type Parameters

Name
T

Returns

Type Description
T

A dashboard data object.

Remarks

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddDashboardDataFromResources<T>(IObjectSpace, String, Assembly, String) method.

Note

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