Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- types
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.