System.Globalization.CultureInfo.TwoLetterISOLanguageName Property

Gets the ISO 639-1 two-letter code for the language of the current System.Globalization.CultureInfo.


public virtual string TwoLetterISOLanguageName { get; }


Documentation for this section has not yet been entered.


For example, the two-letter abbreviation for English is "en". The CultureInfo.TwoLetterISOLanguageName property value for the invariant culture is "iv".


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.

If ISO 639-1 does not define a two-letter language code for a particular culture, the CultureInfo.TwoLetterISOLanguageName property returns a string that consists of three or more letters. For more information, see the example.


Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,