System.Globalization.CultureInfo.CreateSpecificCulture Method

Creates a System.Globalization.CultureInfo that represents the specific culture that is associated with the specified name.

Syntax

public static CultureInfo CreateSpecificCulture (string name)

Parameters

name
A predefined System.Globalization.CultureInfo name or the name of an existing System.Globalization.CultureInfo object. name is not case-sensitive.

Returns

A System.Globalization.CultureInfo object that represents:

The invariant culture, if name is an empty string ("").

-or-

The specific culture associated with name, if name is a neutral culture.

-or-

The culture specified by name, if name is already a specific culture.

Remarks

For a list of predefined culture names, see the tp://go.microsoft.com/fwlink/?LinkId=200048 at the Go Global Developer Center.

Cultures are grouped into three sets: the invariant culture, the neutral cultures, and the specific cultures. For more information, see the description of the System.Globalization.CultureInfo class.

If the culture identifier of the specific culture returned by this method matches the culture identifier of the current Windows culture, this method creates a System.Globalization.CultureInfo object that uses the Windows culture overrides. The overrides include user settings for the properties of the System.Globalization.DateTimeFormatInfo object returned by the CultureInfo.DateTimeFormat property and the System.Globalization.NumberFormatInfo object returned by the CultureInfo.NumberFormat property.

Although the CultureInfo.CreateSpecificCulture(string) method name includes the term "Specific", remember that culture data can change between versions, or due to custom cultures, or because of user overrides. Use the invariant culture or binary or fixed forms for saving data.

Requirements

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