ToString Method
Collapse the table of content
Expand the table of content

RegionInfo.ToString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a string containing the culture name or ISO 3166 two-letter country/region code specified for the current RegionInfo.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public override string ToString()

Return Value

Type: System.String
A string containing the culture name or ISO 3166 two-letter country/region codes defined for the current RegionInfo.

This method overrides Object.ToString.

This method returns the value of the Name property. Case is not significant. However, the Name and TwoLetterISORegionName properties return the appropriate code in uppercase.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft