System.Globalization.RegionInfo.Name Property

Gets the name or ISO 3166 two-letter country/region code for the current System.Globalization.RegionInfo object.

Syntax

public virtual string Name { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the current System.Globalization.RegionInfo object is created with the RegionInfo.#ctor(int) constructor that takes a culture identifier parameter, the RegionInfo.Name property value is one of the two-letter codes defined in ISO 3166 for the country/region and is formatted in uppercase. For example, the two-letter code for the United States is "US".

If the current System.Globalization.RegionInfo object is created with the RegionInfo.#ctor(string) constructor and is passed a full culture name such as "en-US", the RegionInfo.Name property value is a full culture name and not just the region name.

Requirements

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