Back to Devexpress

WorkdaysOptions.LoadHolidays(String) Method

corelibraries-devexpress-dot-xtracharts-dot-workdaysoptions-dot-loadholidays-x28-system-dot-string-x29.md

latest2.3 KB
Original Source

WorkdaysOptions.LoadHolidays(String) Method

Imports holidays from the specified file.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void LoadHolidays(
    string fileName
)
vb
Public Sub LoadHolidays(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

A String value that specifies the file name.

|

Remarks

Important

Note that there is a known vulnerability with CWE-73 (External Control of File Name or Path) when you use the LoadHolidays method in web applications. Refer to the following KB article for more information: False Positive Vulnerabilities - Known alerts detected by various security scanners and services (see the CWE-73: External Control of File Name or Path section)

Call the LoadHolidays method to import holidays in the DevExpress Scheduler ( .xml ) or Microsoft Office Outlook® ( .hol ) formats from a file. You can also use the WorkdaysOptions.Holidays property to populate the collection of holidays.

See Also

Holidays

Data Aggregation

Work Time and Workday Configuration

WorkdaysOptions Class

WorkdaysOptions Members

DevExpress.XtraCharts Namespace