Share via


CultureInfo.ToString Method

Returns a string that contains the name of the current CultureInfo object, in the format "<languagecode2>-<country/regioncode2>".

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

Syntax

public override string ToString ()

Return Value

A string that contains the name of the current CultureInfo object, in the format "<languagecode2>-<country/regioncode2>", where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

CultureInfo Class
CultureInfo Members
System.Globalization Namespace