dashboard-devexpress-dot-dashboardcommon-dot-dashboardextractdatasource.md
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Gets or sets the path to the file containing a data extract.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
[Browsable(true)]
[DefaultValue(null)]
public string FileName { get; set; }
<DefaultValue(Nothing)>
<Browsable(True)>
Public Property FileName As String
| Type | Default | Description |
|---|---|---|
| String | null |
A String value that specifies the path to the file containing a data extract.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the FileName property.
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.
winforms-dashboard-extract-data-source/CS/ExtractDataSourceExample/Form1.cs#L26
extractDataSource.FileName = Path.GetFullPath($"Extract_{ds.Name}.dat");
extractDataSource.UpdateExtractFile();
winforms-dashboard-data-extract-filtering/CS/ExtractFiltering/DesignerForm1.cs#L20
dataExtract.ExtractSourceOptions.DataSource = excelDataSource;
dataExtract.FileName = @"..\..\Data\Extract1.dat";
// Includes only "Beverages" rows from the "CategoryName" table to the Extract Data Source.
web-forms-dashboard-extract-data-source/CS/ASP_WebDashboard/Default.aspx.cs#L47
extractDataSource.ExtractSourceOptions.DataMember = "Invoices";
extractDataSource.FileName = extractFileName;
winforms-dashboard-extract-data-source/VB/ExtractDataSourceExample/Form1.vb#L29
extractDataSource.FileName = Path.GetFullPath($"Extract_{ds.Name}.dat")
extractDataSource.UpdateExtractFile()
winforms-dashboard-data-extract-filtering/VB/ExtractFiltering/DesignerForm1.vb#L19
dataExtract.ExtractSourceOptions.DataSource = excelDataSource
dataExtract.FileName = "..\..\Data\Extract1.dat"
' Includes only "Beverages" rows from the "CategoryName" table to the Extract Data Source.
web-forms-dashboard-extract-data-source/VB/ASP_WebDashboard/Default.aspx.vb#L45
extractDataSource.ExtractSourceOptions.DataMember = "Invoices"
extractDataSource.FileName = extractFileName
See Also
DashboardExtractDataSource Class