CultureInfo.GetCultureInfo Method (String, String)

Note: This method is new in the .NET Framework version 2.0.

Retrieves a cached, read-only instance of a culture. Parameters specify a culture that is initialized with the TextInfo and CompareInfo objects specified by another culture.

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

public static CultureInfo GetCultureInfo (
	string name,
	string altName
public static CultureInfo GetCultureInfo (
	String name, 
	String altName
public static function GetCultureInfo (
	name : String, 
	altName : String
) : CultureInfo



The name of a culture.


The name of a culture that supplies the TextInfo and CompareInfo objects used to initialize name.

Return Value

A read-only CultureInfo object.

Exception typeCondition


name or altName is a null reference (Nothing in Visual Basic).


name or altName specifies a culture that is not supported.

The GetCultureInfo method obtains a cached, read-only culture object more quickly than a new culture object can be created with a CultureInfo constructor. Clear the cache with the ClearCachedData method.

The GetCultureInfo method is typically used by tools that need to efficiently load resources or create multiple instances of a culture.

Use the GetCultureInfo method to create a culture similar to name, but with different sorting and casing rules.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions