C# Class NCldr.Extensions.RegionExtensions

RegionExtensions is a set of methods that provide easy access to NCLDR data for regions
Afficher le fichier Open project: GuySmithFerrier/NCLDR Class Usage Examples

Méthodes publiques

Méthode Description
GetCalendarPreferenceIds ( string regionId ) : string[]

GetCalendarPreferenceIds gets the calendar preference ids for the region

GetFirstDayOfWeek ( string regionId ) : DayOfWeek

GetFirstDayOfWeek gets the first DayOfWeek for the region

GetHour ( string regionId ) : RegionHour

GetHour gets the RegionHour for the region

GetMeasurementSystem ( string regionId ) : RegionMeasurementSystem

GetMeasurementSystem gets the MeasurementSystem for the region

GetPaperSize ( string regionId ) : RegionPaperSize

GetPaperSize gets the RegionPaperSize for the region

GetPostcodeRegex ( string regionId ) : string

GetPostcodeRegex gets the postal code regular expression for the region

GetRegionCode ( string regionId ) : RegionCode

GetRegionCode gets the RegionCode for the region

GetRegionInformation ( string regionId ) : RegionInformation

GetRegionInformation gets the RegionInformation for the region

GetTelephoneCode ( string regionId ) : string

GetTelephoneCode gets the telephone code used by the region

GetTelephoneCode gets only the first telephone code used by the region. There is only one telephone code when a region is a country/region. Only when a region is larger than a country/region (e.g. The World) will it have more than one telephone code.

GetTelephoneCodes ( string regionId ) : string[]

GetTelephoneCodes gets an array of telephone codes used by the region

Method Details

GetCalendarPreferenceIds() public static méthode

GetCalendarPreferenceIds gets the calendar preference ids for the region
public static GetCalendarPreferenceIds ( string regionId ) : string[]
regionId string The Id of the region to get the calendar preference ids for
Résultat string[]

GetFirstDayOfWeek() public static méthode

GetFirstDayOfWeek gets the first DayOfWeek for the region
public static GetFirstDayOfWeek ( string regionId ) : DayOfWeek
regionId string The Id of the region to get the first DayOfWeek for
Résultat DayOfWeek

GetHour() public static méthode

GetHour gets the RegionHour for the region
public static GetHour ( string regionId ) : RegionHour
regionId string The Id of the region to get the RegionHour for
Résultat RegionHour

GetMeasurementSystem() public static méthode

GetMeasurementSystem gets the MeasurementSystem for the region
public static GetMeasurementSystem ( string regionId ) : RegionMeasurementSystem
regionId string The Id of the region to get the MeasurementSystem for
Résultat RegionMeasurementSystem

GetPaperSize() public static méthode

GetPaperSize gets the RegionPaperSize for the region
public static GetPaperSize ( string regionId ) : RegionPaperSize
regionId string The Id of the region to get the RegionPaperSize for
Résultat RegionPaperSize

GetPostcodeRegex() public static méthode

GetPostcodeRegex gets the postal code regular expression for the region
public static GetPostcodeRegex ( string regionId ) : string
regionId string The Id of the region to get the postal code regular expression for
Résultat string

GetRegionCode() public static méthode

GetRegionCode gets the RegionCode for the region
public static GetRegionCode ( string regionId ) : RegionCode
regionId string The Id of the region to get the RegionCode for
Résultat RegionCode

GetRegionInformation() public static méthode

GetRegionInformation gets the RegionInformation for the region
public static GetRegionInformation ( string regionId ) : RegionInformation
regionId string The Id of the region to get the RegionInformation for
Résultat RegionInformation

GetTelephoneCode() public static méthode

GetTelephoneCode gets the telephone code used by the region
GetTelephoneCode gets only the first telephone code used by the region. There is only one telephone code when a region is a country/region. Only when a region is larger than a country/region (e.g. The World) will it have more than one telephone code.
public static GetTelephoneCode ( string regionId ) : string
regionId string The Id of the region to get the telephone code for
Résultat string

GetTelephoneCodes() public static méthode

GetTelephoneCodes gets an array of telephone codes used by the region
public static GetTelephoneCodes ( string regionId ) : string[]
regionId string The Id of the region to get the telephone codes for
Résultat string[]