C# 클래스 NCldr.Extensions.RegionExtensions

RegionExtensions is a set of methods that provide easy access to NCLDR data for regions
파일 보기 프로젝트 열기: GuySmithFerrier/NCLDR 1 사용 예제들

공개 메소드들

메소드 설명
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[]