ExtractDataSourceConnectionParameters Class

Contains parameters used to establish a connection to an Extract data source.

Namespace: DevExpress.DashboardCommon

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

Declaration

public class ExtractDataSourceConnectionParameters :
    ExtractDataSourceConnectionParametersBase
Public Class ExtractDataSourceConnectionParameters
    Inherits ExtractDataSourceConnectionParametersBase
    Implements

Remarks

The ExtractDataSourceConnectionParameters contains parameters required for connection to the data extract file.

When the ConfigureDataConnection event occurs, the ExtractDataSourceConnectionParameters instance is available as the e.ConnectionParameters property value.

For more information about the data connection parameters, refer to the DataConnectionParametersBase topic.

Examples

This code snippet is the ConfigureDataConnection event handler that allows you to specify the extract data source's file location before the dashboard loads.

Note

The complete sample project How to set master filter in DashboardViewer is available in the DevExpress Examples repository.

using DevExpress.DashboardCommon;
// ...
dashboardViewer1.ConfigureDataConnection += dashboardViewer1_ConfigureDataConnection;
// ...
private void dashboardViewer1_ConfigureDataConnection(object sender, DashboardConfigureDataConnectionEventArgs e)
{
    ExtractDataSourceConnectionParameters parameters = e.ConnectionParameters as ExtractDataSourceConnectionParameters;
    if (parameters != null)
        parameters.FileName = Path.GetFileName(parameters.FileName);
}

Inheritance

Implements

DevExpress.Xpo.Helpers.IConnectionPage
See Also