TextInfo.LCID Property

Gets the culture identifier for the culture associated with the current TextInfo object.

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

public int LCID { get; }
/** @property */
public int get_LCID ()

public function get LCID () : int

Not applicable.

Property Value

A number that identifies the culture that the current TextInfo object was created from.

A culture identifier is known as a locale identifier (LCID) in the Windows API.

The LCID property always reflects a specific culture rather than a neutral culture. If CultureInfo.LCID has a neutral culture as its value, then the corresponding LCID has as its value an arbitrary specific culture that uses the same language. For example, the CultureInfo.LCID property returns 0x0009 for the English (en) neutral culture, but the corresponding LCID property might return 0x0409 for the English (United States), en-US, culture. Similarly, the LCID property never reflects a particular sort. It always corresponds to a default sort order. For example, the default sort order for Spanish (Spain) is the international sort order. If CultureInfo.LCID is "0x040A" (Spanish with the traditional sort order) then the corresponding LCID is "0x0C0A" (Spanish with the default international sort order).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions