RegionInfo.ToString RegionInfo.ToString RegionInfo.ToString RegionInfo.ToString Method

Definition

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

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

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

Remarks

This method overrides Object.ToString.

This method returns the value of the Name property.

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.

Applies to

See also