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.GlobalizationAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
CultureInfoA read-only instance of the specified culture.
Exceptions Exception | Condition |
---|
ArgumentNullException | name or altName is null. |
CultureNotFoundException | name or altName specifies a culture that is not supported. |
See Also