CultureInfo.ToString CultureInfo.ToString CultureInfo.ToString CultureInfo.ToString Method

Definition

Returns a string containing the name of the current CultureInfo in the format languagecode2-country/regioncode2.

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 name of the current CultureInfo.

Remarks

This method overrides Object.ToString. It returns a normalized version of the culture name that is passed to the CultureInfo(String) or CultureInfo(String, Boolean) constructor or to the CreateSpecificCulture or GetCultureInfo(String) method. It normalizes the result string by converting characters in languagecode2 to lowercase and converting characters in country/regioncode2 to uppercase if necessary.

Predefined culture names are listed in the National Language Support (NLS) API Reference page at the Go Global Developer Center.

Applies to

See also