CultureInfo Constructor
Initializes a new instance of the CultureInfo class based on the specified culture name.
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Syntax
public CultureInfo (
string name
)
Parameters
- name
A predefined CultureInfo name or the Name property of an existing CultureInfo name.
Remarks
The CultureInfo names follow the RFC 1766 standard, in the format "<languagecode2>-<country/regioncode2>", where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, U.S. English is denoted as "en-US". In cases where a two-letter language code is not available, the appropriate three-letter code derived from ISO 639-2 is used; for example, the three-letter code "div" is used for cultures that use the Dhivehi language. The predefined CultureInfo names are listed in the CultureInfo class topic.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
CultureInfo Class
CultureInfo Members
System.Globalization Namespace