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+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

DashboardsModule.AddDashboardData<T>(IObjectSpace, String, String) Method

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

Namespace: DevExpress.ExpressApp.Dashboards

Assembly: DevExpress.ExpressApp.Dashboards.v19.2.dll

Declaration

public static T AddDashboardData<T>(
    IObjectSpace objectSpace,
    string title,
    string xml
)
    where T : IDashboardData
Public Shared Function AddDashboardData(Of T As IDashboardData)(
    objectSpace As IObjectSpace,
    title As String,
    xml As String
) As T
public static T AddDashboardData<T>(
    IObjectSpace objectSpace,
    string title,
    string xml
)
    where T : IDashboardData
Public Shared Function AddDashboardData(Of T As IDashboardData)(
    objectSpace As IObjectSpace,
    title As String,
    xml As String
) As T

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that specifies the Object Space.

title String

A string specifying the dashboard title.

xml String

A string specifying the dashboard configuration in XML format.

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that specifies the Object Space.

title String

A string specifying the dashboard title.

xml String

A string specifying the dashboard configuration in XML format.

Returns

Type Description
T

A dashboard data object.

Returns

Type Description
T

A dashboard data object.

Type Parameters

Name Description
T

Type Parameters

Name Description
T

Remarks

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

An example of using this method is provided in the Create a Predefined Dashboard and Add it to the Navigation topic.

See Also