C# Класс NCldr.Extensions.RegionExtensions

RegionExtensions is a set of methods that provide easy access to NCLDR data for regions
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetCalendarPreferenceIds() публичный статический Метод

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
Результат string[]

GetFirstDayOfWeek() публичный статический Метод

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
Результат DayOfWeek

GetHour() публичный статический Метод

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
Результат RegionHour

GetMeasurementSystem() публичный статический Метод

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
Результат RegionMeasurementSystem

GetPaperSize() публичный статический Метод

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
Результат RegionPaperSize

GetPostcodeRegex() публичный статический Метод

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
Результат string

GetRegionCode() публичный статический Метод

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
Результат RegionCode

GetRegionInformation() публичный статический Метод

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
Результат RegionInformation

GetTelephoneCode() публичный статический Метод

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
Результат string

GetTelephoneCodes() публичный статический Метод

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
Результат string[]