Bewerken

Share via


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, TwoLetterISORegionName, and ThreeLetterISORegionName properties return the appropriate code in uppercase.

The predefined RegionInfo names are listed on the RegionInfo class page.

Applies to

See also