Gets the list of supported cultures filtered by the specified CultureTypes parameter.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.Globalization.CultureTypes
A bitwise combination of the enumeration values that filter the cultures to retrieve.
Return ValueType: System.Globalization.CultureInfo
An array that contains the cultures specified by the types parameter. The array of cultures is unsorted.
The 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.
The following code example displays several properties of the neutral cultures.
The example displays the zh-CHS and zh-CHT cultures with the 0x0004 and 0x7C04 culture identifiers, respectively. However, your Windows Vista applications should use the zh-Hans name instead of zh-CHS and the zh-Hant name instead of zh-CHT. The zh-Hans and zh-Hant names represent the current standard, and should be used unless you have a reason for using the older names.