Export (0) Print
Expand All

TextInfo.LCID Property

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

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

[<ComVisibleAttribute(false)>]
member LCID : int with get

Property Value

Type: System.Int32
A number that identifies the culture from which the current TextInfo object was created.

Certain predefined culture names and identifiers are used by this and other classes in the System.Globalization namespace, as well as the Windows API. The detailed culture information is defined in the National Language Support (NLS) API Reference topic at the Go Global Developer Center.

The LCID property always reflects a specific culture identifier instead of a neutral culture identifier. If CultureInfo.LCID is set to a neutral culture identifier, the corresponding LCID has as its value an arbitrary specific culture identifier that uses the same language. For example, the CultureInfo.LCID property returns 0x0009 for the English neutral culture, named "en". However, the corresponding LCID property might return 0x0409 for the English (United States) culture, named en-US.

Similarly, the LCID property always corresponds to a default sort order, and never reflects a specific sort order. For example, the default sort order for Spanish (Spain) is the international sort order. If CultureInfo.LCID is set to "0x040A" (Spanish with the traditional sort order), the corresponding LCID value is "0x0C0A" (Spanish with the default international sort order).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft