asp.net.ph

RegionInfo Class

System.Globalization Namespace


Contains information about the country/region.

RegionInfo Class Members

Collapse   Constructors

Visibility Constructor Parameters
public RegionInfo ( String name )
public RegionInfo ( Int32 culture )

Collapse   Properties

Visibility Name Value Type Accessibility
public CurrencyEnglishName String [ Get ]
public CurrencyNativeName String [ Get ]
public CurrencySymbol String [ Get ]
public static CurrentRegion RegionInfo [ Get ]
public DisplayName String [ Get ]
public EnglishName String [ Get ]
public GeoId Int32 [ Get ]
public IsMetric Boolean [ Get ]
public ISOCurrencySymbol String [ Get ]
public Name String [ Get ]
public NativeName String [ Get ]
public ThreeLetterISORegionName String [ Get ]
public ThreeLetterWindowsRegionName String [ Get ]
public TwoLetterISORegionName String [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Equals ( Object value ) Boolean
public GetHashCode ( ) Int32
public ToString ( ) String

Remarks

In contrast to CultureInfo, RegionInfo does not represent preferences of the user and does not depend on the user's language or culture.

The RegionInfo name is one of the two-letter codes defined in ISO 3166 for country/region. Case is not significant; however, the Name, the TwoLetterISORegionName, and the ThreeLetterISORegionName properties return the appropriate code in uppercase.

Example

The below shows several examples of using the RegionInfo class.

The first example displays a list of the predefined RegionInfo names accepted and used by this class and other classes in the System.Globalization namespace.

The next example lists currency information for each of the predefined RegionInfo names.

While the last example shows some practical usage of the RegionInfo class.

Predefined RegionInfo Names
Run Sample | View Source
RegionInfo Currency Names and Symbols
Run Sample | View Source
Localization Resource Fallback
Run Sample | View Source
See Also

CultureInfo   ASP.NET Globalization Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph