System.Globalization.CultureTypes Enumeration

Defines the types of culture lists that can be retrieved using the CultureInfo.GetCultures(CultureTypes) method.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum CultureTypes

Remarks

These culture type values are returned by the CultureInfo.CultureTypes property, and also serve as a filter that limits the cultures returned by the CultureInfo.GetCultures(CultureTypes) method. For more information on cultures, see System.Globalization.CultureInfo.

Generally, your application should enumerate all cultures, using the CultureTypes.AllCultures value. This allows enumeration of custom cultures, as well as the other culture types.

Note that the CultureTypes.FrameworkCultures and CultureTypes.WindowsOnlyCultures members have been deprecated.

Members

Member NameDescription
AllCultures

All cultures that ship with the .NET Framework, including neutral and specific cultures, cultures installed in the Windows operating system, and custom cultures created by the user.

FrameworkCultures

This member is deprecated; using this value with CultureInfo.GetCultures(CultureTypes) returns neutral and specific cultures shipped with the previous .NET Framework.

InstalledWin32Cultures

All cultures that are installed in the Windows operating system. Note that not all cultures supported by the .NET Framework are installed in the operating system.

NeutralCultures

Cultures that are associated with a language but are not specific to a country/region. The names of .NET Framework cultures consist of the lowercase two-letter code derived from ISO 639-1. For example: "en" (English) is a neutral culture.

ReplacementCultures

Custom cultures created by the user that replace cultures shipped with the .NET Framework.

SpecificCultures

Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is "<languagecode2>-<country/regioncode2>", where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, "en-US" for English (United States) is a specific culture.

UserCustomCulture

Custom cultures created by the user.

WindowsOnlyCultures

This member is deprecated; the default behavior is set to return an empty list for backward compatibility reasons.

Requirements

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