This documentation is archived and is not being maintained.

RegionInfo.ToString Method

Returns a string containing the two-letter country/region codes defined in ISO 3166 for the current RegionInfo.

[Visual Basic]
Overrides Public Function ToString() As String
[C#]
public override string ToString();
[C++]
public: String* ToString();
[JScript]
public override function ToString() : String;

Return Value

A string containing the two-letter country/region codes defined in ISO 3166 for the current RegionInfo.

Remarks

This method overrides Object.ToString.

This method returns the value of the Name property which is one of the two-letter country/region codes defined in ISO 3166.

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

The predefined RegionInfo names are listed in the RegionInfo class topic.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

RegionInfo Class | RegionInfo Members | System.Globalization Namespace | Object.ToString | Name

Show: