CultureTypes Enumeration

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[<SerializableAttribute>]
[<FlagsAttribute>]
[<ComVisibleAttribute(true)>]
type CultureTypes

Member nameDescription
Supported by the XNA FrameworkAllCulturesAll 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 Obsolete. This member is deprecated; using this value with CultureInfo.GetCultures returns neutral and specific cultures shipped with the previous .NET Framework.
Supported by the XNA FrameworkInstalledWin32CulturesAll 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.
Supported by the XNA FrameworkNeutralCulturesCultures 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.

Custom cultures can have any user-specified name, not just a two-letter code.

The invariant culture is included in the array of cultures returned by the CultureInfo.GetCultures method that specifies this value.

ReplacementCulturesCustom cultures created by the user that replace cultures shipped with the .NET Framework.
Supported by the XNA FrameworkSpecificCulturesCultures 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.

Custom cultures can have any user-specified name, not just a standard-compliant name.

UserCustomCultureCustom cultures created by the user.
WindowsOnlyCultures Obsolete. This member is deprecated; the default behavior is set to return an empty list for backward compatibility reasons.

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 method. For more information on cultures, see CultureInfo.

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

Note that the FrameworkCultures and WindowsOnlyCultures members have been deprecated.

The following example demonstrates the CultureTypes enumeration and the CultureTypes property.

No code example is currently available or this language may not be supported.

The following example displays several properties of the neutral cultures.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft