asp.net.ph

CultureInfo.Name Property

System.Globalization Namespace   CultureInfo Class


Gets the culture name in the format "<languagecode2>-<country/regioncode2>".

[ VB ]
Overridable Public ReadOnly Property Name As String

[ C# ]
public virtual string Name {get;}

[ C++ ]
public: __property virtual String* get_Name ( );

[ JScript ]
function get Name ( ) : String;

Property Value

The culture name 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

The CultureInfo.Name property follows 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, the Name for the specific culture U.S. English is "en-US".

If the culture is a neutral culture, its Name is in the format "<languagecode2>". For example, the Name for the neutral culture English is "en".

The predefined CultureInfo names are listed in the CultureInfo class topic.

To get the full name of the culture, use DisplayName, EnglishName, or NativeName.

Example

The below shows the Name used for each of the available cultures.

 Show me 

See Also

CultureInfo Members   DisplayName   NativeName   EnglishName   TwoLetterISOLanguageName   ThreeLetterISOLanguageName   ThreeLetterWindowsLanguageName 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