System.Globalization.RegionInfo.TwoLetterISORegionName Property

Gets the two-letter code defined in ISO 3166 for the country/region.

Syntax

public virtual string TwoLetterISORegionName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Globalization.RegionInfo name is one of the two-letter codes defined in ISO 3166 for country/region. For example, the two-letter code for United States is "US".

Note:

In some cases, the RegionInfo.TwoLetterISORegionName property may have more than two characters. For example, the value of the RegionInfo.TwoLetterISORegionName property for the Caribbean region is "029".

Case is not significant. However, the RegionInfo.Name, the RegionInfo.TwoLetterISORegionName, and the RegionInfo.ThreeLetterISORegionName properties return the appropriate code in uppercase.

Note:

If you want to persist a System.Globalization.RegionInfo object or communicate it between processes, you should instantiate it by using a full culture name rather than a two-letter ISO region code. Because System.Globalization.RegionInfo properties depend on script and language, instantiating a System.Globalization.RegionInfo object by using only a region code loses context and data.

The predefined System.Globalization.RegionInfo names are listed in tp://go.microsoft.com/fwlink/?LinkId=190591 on the ISO website.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0