Skip to main content
All docs

DashboardExtractDataSource.ConnectionName Property

Specifies the name of the created connection to an Extract Data Source.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v22.1.Core.dll


public string ConnectionName { get; set; }

Property Value

Type Default Description


A connection name.


Use the ConnectionName property to identify the data source for which the ConfigureDataConnection event is raised.

The following code snippet shows how to configure a data connection for an Extract Data Source:

using System.Web.Routing;
using DevExpress.DashboardWeb;
using DevExpress.DashboardWeb.Mvc;
using System.Web.Hosting;
using DevExpress.DashboardCommon;

namespace DashboardMVC {
    public static class DashboardConfig {
        public static void RegisterService(RouteCollection routes) {

            DashboardFileStorage dashboardFileStorage = new DashboardFileStorage("~/App_Data/Dashboards");
            DataSourceInMemoryStorage dataSourceStorage = new DataSourceInMemoryStorage();
            // Registers an Extract Data Source.
            DashboardExtractDataSource extractDataSource = new DashboardExtractDataSource("Extract Data Source");
            extractDataSource.ConnectionName = "Extract Data Source ID";
            dataSourceStorage.RegisterDataSource("extractDataSource", extractDataSource.SaveToXml());
            DashboardConfigurator.Default.ConfigureDataConnection += Configurator_ConfigureDataConnection;
         private static void Configurator_ConfigureDataConnection(object sender, ConfigureDataConnectionWebEventArgs e) {
               if (e.ConnectionName == "Extract Data Source ID") {
                ExtractDataSourceConnectionParameters extractParams = new ExtractDataSourceConnectionParameters(HostingEnvironment.MapPath(@"~/App_Data/SalesPersonExtract.dat"));
                e.ConnectionParameters = extractParams;

The following code snippets (auto-collected from DevExpress Examples) contain references to the ConnectionName property.


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