System.Globalization.CultureInfo.GetCultureInfo Method

Retrieves a cached, read-only instance of a culture by using the specified culture identifier.

Syntax

public static CultureInfo GetCultureInfo (int culture)

Parameters

culture
A locale identifier (LCID).

Returns

A read-only System.Globalization.CultureInfo object.

Remarks

We recommend that you use the string overload of this method (CultureInfo.GetCultureInfo(string)), because locale names should be used instead of LCIDs. For custom locales, the locale name is required.

If culture is the locale identifier of the current culture, the returned System.Globalization.CultureInfo object does not reflect any user overrides.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0