System.Globalization.CultureInfo.GetCultures Method

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

Syntax

public static CultureInfo[] GetCultures (CultureTypes types)

Parameters

types
A bitwise combination of the enumeration values that filter the cultures to retrieve.

Returns

An array that contains the cultures specified by the types parameter. The array of cultures is unsorted.

Remarks

The CultureInfo.GetCultures(CultureTypes) method is most commonly called with the types parameter set to the following values:

Requirements

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