asp.net.ph

CultureInfo.ToString Method

System.Globalization Namespace   CultureInfo Class


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

[ VB ]
Overrides Public Function ToString ( ) As String

[ C# ]
public override string ToString ( );

[ C++ ]
public: String* ToString ( );

[ JScript ]
override function ToString ( ) : String;

Return Value

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

Remarks

This method overrides Object.ToString.

This method returns the value of the Name property. The CultureInfo names follow the RFC 1766 standard 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. For example, U.S. English is "en-US". The predefined CultureInfo names are listed in the CultureInfo class topic.

See Also

CultureInfo Members   Object.ToString   Name Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph