Share via


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)

Syntax

'Declaration
Public Shared Function GetCultures ( _
    types As CultureTypes _
) As CultureInfo()
public static CultureInfo[] GetCultures(
    CultureTypes types
)
public:
static array<CultureInfo^>^ GetCultures(
    CultureTypes types
)
static member GetCultures : 
        types:CultureTypes -> CultureInfo[] 
public static function GetCultures(
    types : CultureTypes
) : CultureInfo[]

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

CultureInfo Class

System.Globalization Namespace