.NET Framework Class Library
CultureInfoGetCultureInfo Method (String)

Retrieves a cached, read-only instance of a culture using the specified culture name.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)
Public Shared Function GetCultureInfo ( _
	name As [%$TOPIC/yck8b540_en-us_VS_110_1_0_0_0_0%] _
) As [%$TOPIC/yck8b540_en-us_VS_110_1_0_0_0_1%]
public static [%$TOPIC/yck8b540_en-us_VS_110_1_0_1_0_0%] GetCultureInfo(
	[%$TOPIC/yck8b540_en-us_VS_110_1_0_1_0_1%] name
static [%$TOPIC/yck8b540_en-us_VS_110_1_0_2_0_0%]^ GetCultureInfo(
	[%$TOPIC/yck8b540_en-us_VS_110_1_0_2_0_1%]^ name
static member GetCultureInfo : 
        name:[%$TOPIC/yck8b540_en-us_VS_110_1_0_3_0_0%] -> [%$TOPIC/yck8b540_en-us_VS_110_1_0_3_0_1%]
public static function GetCultureInfo(
	name : [%$TOPIC/yck8b540_en-us_VS_110_1_0_4_0_0%]
) : [%$TOPIC/yck8b540_en-us_VS_110_1_0_4_0_1%]


Type: SystemString

The name of a culture. name is not case-sensitive.

Return Value

Type: System.GlobalizationCultureInfo
A read-only CultureInfo object.

name is null.


name specifies a culture that is not supported.


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

The GetCultureInfo method retrieves a cached, read-only CultureInfo object. It offers better performance than a corresponding call to the CultureInfoCultureInfo(String) constructor.

If name is the name of the current culture, the returned CultureInfo object does not reflect any user overrides. This makes the method suitable for server applications or tools that do not have a real user account on the system and that need to load multiple cultures efficiently.

If name is StringEmpty, the method returns the invariant culture. This is equivalent to retrieving the value of the InvariantCulture property.

Notes to Callers

The .NET Framework 3.5 and earlier versions throw an ArgumentException if name is not a valid culture name. Starting with the .NET Framework 4, this method throws a CultureNotFoundException.

Version Information

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0