Assembly: mscorlib (in mscorlib.dll)
Public Shared Function GetCultureInfo ( _ name As [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_0_0_0%], _ altName As [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_0_0_1%] _ ) As [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_0_0_2%]
public static [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_1_0_0%] GetCultureInfo( [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_1_0_1%] name, [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_1_0_2%] altName )
public: static [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_2_0_0%]^ GetCultureInfo( [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_2_0_1%]^ name, [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_2_0_2%]^ altName )
static member GetCultureInfo : name:[%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_3_0_0%] * altName:[%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_3_0_1%] -> [%$TOPIC/eaw6y1cb_en-us_VS_110_3_0_3_0_2%]
The name of a culture. name is not case-sensitive.
For a list of predefined culture names, see the National Language Support (NLS) API Reference at the Go Global Developer Center.
The GetCultureInfo method obtains a cached, read-only CultureInfo object. It offers better performance than a corresponding call to a CultureInfo constructor. The method is used to create a culture similar to that specified by the name parameter, but with different sorting and casing rules.
If name or altName is the name of the current culture, the returned objects do not reflect any user overrides. If name is StringEmpty, the method returns the invariant culture. This is equivalent to retrieving the value of the InvariantCulture property. If altName is StringEmpty, the method uses the writing system and comparison rules specified by the invariant culture.Notes to Callers
The .NET Framework 3.5 and earlier versions throw an ArgumentException if name or altName is not a valid culture name. Starting with the .NET Framework 4, this method throws a CultureNotFoundException.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.