This documentation is archived and is not being maintained.

CultureInfo.CreateSpecificCulture Method

Creates a CultureInfo object that represents the specific culture that is associated with the specified name.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public static function CreateSpecificCulture(
	name : String
) : CultureInfo


Type: System.String

A predefined CultureInfo name or the name of an existing CultureInfo object.

Return Value

Type: System.Globalization.CultureInfo
A CultureInfo object that represents:
The invariant culture, if name is an empty string ("").
The specific culture associated with name, if name is a neutral culture.
The culture specified by name, if name is already a specific culture.


name is not a valid culture name.


The culture specified by name does not have a specific culture associated with it.


name is null.

For a list of predefined culture names, see the National Language Support (NLS) API Reference at the Go Global Developer Center.

Cultures are grouped into three sets: the invariant culture, the neutral cultures, and the specific cultures. For more information, see the description of the CultureInfo class.

If the culture identifier associated with the specified culture name matches the culture identifier of the current Windows culture, this method creates a CultureInfo object that uses the Windows culture overrides. The overrides include user settings for the properties of the DateTimeFormatInfo object returned by the DateTimeFormat property, and the properties of the NumberFormatInfo object returned by the NumberFormat property.

The following code example shows the results of CreateSpecificCulture with different culture types.


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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0