GetCultures Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the list of supported cultures filtered by the specified CultureTypes parameter.

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

static member GetCultures : 
        types:CultureTypes -> CultureInfo[] 


Type: System.Globalization..::..CultureTypes
A bitwise combination of the enumeration values that filter the cultures to retrieve.

Return Value

Type: array<System.Globalization..::..CultureInfo>[]()[][]
An array that contains the cultures specified by the types parameter. The array of cultures is unsorted.

The GetCultures method is most commonly called with the types parameter set to the following values:

  • SpecificCultures, which returns all specific cultures.

  • NeutralCultures, which returns all neutral cultures and the invariant culture.

  • AllCultures, which returns all neutral and specific cultures, cultures installed in the Windows system, and custom cultures created by the user.

  • UserCustomCulture, which returns all custom cultures, such as those registered by the CultureAndRegionInfoBuilder class.