Export (0) Print
Expand All

CultureInfo.GetCultures Method

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[] 

Parameters

types
Type: System.Globalization.CultureTypes

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

Return Value

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

ExceptionCondition
ArgumentOutOfRangeException

types specifies an invalid combination of CultureTypes values.

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

The following code example displays several properties of the neutral cultures.

NoteNote

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft