Skip to main content
A newer version of this page is available. .

DataSourceInMemoryStorage.RegisterDataSource(String, XElement) Method

Registers the specified data source in the current DataSourceInMemoryStorage.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v18.2.Web.dll

Declaration

public void RegisterDataSource(
    string dataSourceId,
    XElement rootElement
)

Parameters

Name Type Description
dataSourceId String

A String that is the data source identifier.

rootElement XElement

A XElement object that specifies the XML element.

Remarks

Use the SaveToXml methods to save the XML definition of the SQL data source. For instance, the DashboardSqlDataSource exposes the SqlDataSource.SaveToXml method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterDataSource(String, XElement) 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