System.Globalization.CultureInfo.TwoLetterISOLanguageName Property

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

Syntax

public virtual string TwoLetterISOLanguageName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

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.

Requirements

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