Click or drag to resize
CultureInfoGetCultureInfo Method (String, String)
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) Version: 4.0.0.0
Syntax
C#
public static CultureInfo GetCultureInfo(
	string name,
	string altName
)

Parameters

name
Type: SystemString
The name of a culture. name is not case-sensitive.
altName
Type: SystemString
The name of a culture that supplies the TextInfo and CompareInfo objects used to initialize name. altName is not case-sensitive.

Return Value

Type: CultureInfo
A read-only instance of the specified culture.
Exceptions
ExceptionCondition
ArgumentNullExceptionname or altName is null.
CultureNotFoundExceptionname or altName specifies a culture that is not supported.
See Also