Holiday Regions

List all possible holiday regions

SDK Method

HolidayRegion.GetSupported();

Return Object

FilesList<HolidayRegion>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

using FilesCom.Models;

try
{
    var holidayRegionIterator = HolidayRegion.GetSupported();
    foreach (HolidayRegion holidayRegion in holidayRegionIterator.ListAutoPaging()) {
        // Operate on holidayRegion
    }
}
catch (FilesCom.NotAuthenticatedException e)
{
    Console.WriteLine($"Authentication Error Occurred ({e.GetType().Name}): " + e.Message);
}
catch (FilesCom.SdkException e)
{
    Console.WriteLine($"Unknown Error Occurred ({e.GetType().Name}): " + e.Message);
}

The HolidayRegion Object

Some of the methods above return a HolidayRegion object. The attributes of this object are listed below.

AttributeDescription
code
string
The code representing a region
name
string
The name of the region