System.Globalization.CultureInfo.CreateSpecificCulture Method

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


public static CultureInfo CreateSpecificCulture (string name)


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


A System.Globalization.CultureInfo object that represents:

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


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


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


For a list of predefined culture names, see the tp:// 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.


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