GetCultureInfo()

CultureInfo::GetCultureInfo(const String&) method

Gets culture by its name. Same as CreateSpecificCulture.

static CultureInfoPtr System::Globalization::CultureInfo::GetCultureInfo(const String &name)

Arguments

ParameterTypeDescription
nameconst String&Predefined culture name or existing culture object’s name.

Return Value

Newly created culture object.

CultureInfo::GetCultureInfo(const String&, const String&) method

Gets culture by its name.

static CultureInfoPtr System::Globalization::CultureInfo::GetCultureInfo(const String &name, const String &text_and_compare_culture_name)

Arguments

ParameterTypeDescription
nameconst String&Culture name.
text_and_compare_culture_nameconst String&Culture name used for TextInfo and CompareInfo objects.

Return Value

Culture object.

CultureInfo::GetCultureInfo(int32_t) method

Gets culture by id.

static CultureInfoPtr System::Globalization::CultureInfo::GetCultureInfo(int32_t culture)

Arguments

ParameterTypeDescription
cultureint32_tCulture identifier.

Return Value

Newly created culture object.

See Also