CultureInfo.ThreeLetterWindowsLanguageName Property

 

Gets the three-letter code for the language as defined in the Windows API.

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

abstract ThreeLetterWindowsLanguageName : string with get
override ThreeLetterWindowsLanguageName : string with get

Property Value

Type: System.String

The three-letter code for the language as defined in the Windows API.

This property returns the same value as the Windows API method GetLocaleInfo with the LOCALE_SABBREVLANGNAME value. For example, the three-letter code for English (United States) as defined in the Windows API is "enu".

System_CAPS_noteNote

When communicating between processes or persisting data it is usually better to use the full CultureInfo.Name. Using just the language can lose context and data.

The following code example displays several properties of the neutral cultures.

System_CAPS_noteNote

The example displays the older zh-CHS and zh-CHT culture names with the 0x0004 and 0x7C04 culture identifiers, respectively. However, your Windows Vista applications should use the zh-Hans name instead of zh-CHS and the zh-Hant name instead of zh-CHT. The zh-Hans and zh-Hant names represent the current standard, and should be used unless you have a reason for using the older names.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: