NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CultureInfo Class

[To be supplied.]

Object
   CultureInfo

[Visual Basic]
Public Class CultureInfo
   Implements IServiceObjectProvider
[C#]
public class CultureInfo : IServiceObjectProvider
[C++]
public __gc class CultureInfo : public IServiceObjectProvider
[JScript]
public class CultureInfo implements IServiceObjectProvider

Remarks

It[a1] includes information such as the language, writing system, and calendar used by the culture as well as methods for common operations such as printing dates and sorting strings.

The CultureInfo class is simply a set of user preference information that is dependent on the user's language, sub-language, country, and cultural conventions. This class is useful for obtaining CompareInfo the default locale[a2], which can then be used indirectly by the String class.

The CultureInfo class implements the IFormatProvider interface, which is also implemented by NumberFormatInfo. This obtains the format information object based on the CultureInfo of the current thread by calling CultureInfo.GetFormat (NumberFormatInfo class).

The NLS[a3] class is used to retrieve region and language settings, conduct culturally correct sorting, string comparison, formatting dates and time, string mapping and determining character type information.[a4]

The user selects the locale for the system as the system is installed. The culture names follow the RFC1766 names. The format is as follows <language>-<country>, for example, US English will be "en-US". The language is a lowercase two-letter code in ISO 639-1. The location is an uppercase two-letter code in ISO 3166. For more information see Culture Names.

The following is a list of the predefined CultureInfo names used by the CultureInfo(String) constructor and the Globalization API.[a5]

CultureInfo Name Culture
af South Africa
af-neutral South Africa
ar Saudi Arabia
ar-ae U.A.E[a6].
ar-bh Bahrain
ar-dz Algeria
ar-eg Egypt
ar-iq Iraq
ar-jo Jordan
ar-kw Kuwait
ar-lb Lebanon
ar-ly Libya
ar-ma Morocco
ar-om Oman
ar-qa Qatar
ar-sa Saudi Arabia
ar-sy Syria
ar-tn Tunisia
ar-ye Yemen
as India
as-neutral India
az-cyrillic Azerbaijan
az-latin Azerbaijan
az-neutral Azerbaijan
be Belarus
bg Bulgaria
bg-neutral Bulgaria
bn India
bn-neutral India
ca Spain
ca-neutral Spain
da Denmark
da-neutral Denmark
de Germany
de-at Austria
de-ch Switzerland
de-li Liechtenstein
de-lu Luxembourg
de-neutral Germany
el Greece
el-neutral Greece
en-au Australia
en-bz Belize
en-ca Canada
en-cb Caribbean
en-gb United Kingdom
en-ie Ireland
en-jm Jamaica
en-neutral United States
en-nz New Zealand
en-ph Republic of the Philippines
en-tt Trinidad y Tobago
en-us United States
en-za South Africa
en-zw Zimbabwe
es Spain
es-ar Argentina
es-bo Bolivia
es-cl Chile
es-co Colombia
es-cr Costa Rica
es-do Dominican Republic
es-ec Ecuador
es-es Spain
es-gt Guatemala
es-hn Honduras
es-mx Mexico
es-neutral Spain
es-ni Nicaragua
es-pa Panama
es-pe Peru
es-pr Puerto Rico
es-py Paraguay
es-sv El Salvador
es-uy Uruguay
es-ve Venezuela
et Estonia
et-neutral Estonia
eu Spain
eu-neutral Spain
fa Iran
fa-neutral Iran
fi Finland
fo Faeroe Islands
fo-neutral Faeroe Islands
fr Faeroe Islands
fr-be Belgium
fr-ca Canada
fr-ch Switzerland
fr-lu Luxembourg
fr-mc Principality of Monaco
fr-neutral France
gu India
gu-neutral India
he Israel
he-neutral Israel
hi India
hi-kok India
hi-neutral India
hi-neutral2 India
hr-neutral Croatia
hu Hungary
hu-neutral Hungary
hy Republic of Armenia
hy-neutral Republic of Armenia
id Indonesia
id-neutral Indonesia
is Iceland
it Italy
it-ch Switzerland
it-neutral Italy
ja Japan
ja-neutral Japan
ka Georgia
ka-neutral Georgia
kk Kazakhstan
kk-neutral Kazakhstan
kn India
kn-neutral India
ko Korea
ko-neutral Korea
lt Lithuania
lt-neutral Lithuania
lv Latvia
lv-neutral Latvia
mk Former Yugoslav Republic of Macedonia
ml India
ml-neutral India
mr India
mr-neutral India
ms Malaysia
ms-br Brunei Darussalam
ms-neutral Malaysia
ne India
ne-neutral India
nl Netherlands
nl-be Belgium
nl-neutral Netherlands
no Norway
no-bok Norway
no-no Norway
or India
or-neutral India
pa India
pa-neutral India
pl Poland
pl-neutral Poland
pt Portugal
pt-br Brazil
pt-neutral Brazil
ro Romania
ro-neutral Romania
ru Russia
ru-neutral Russia
sa India
sa-neutral India
sk Slovakia
sk-neutral Slovakia
sl Slovenia
sl-neutral Slovenia
sq Albania
sq-neutral Albania
sr Serbia
sr-sp Serbia
sv Sweden
sv-fi Finland
sv-neutral Sweden
sw Kenya
sw-neutral Kenya
ta India
ta-neutral India
te India
te-neutral India
th Thailand
th-neutral Thailand
tr Turkey
tr-neutral Turkey
tt Tatarstan
tt-neutral Tatarstan
uk Ukraine
uk-neutral Ukraine
ur Islamic Republic of Pakistan
ur-neutral Islamic Republic of Pakistan
uz Republic of Uzbekistan
uz-neutral Republic of Uzbekistan
uz-uz Republic of Uzbekistan
vi Viet Nam
vi-neutral Viet Nam
zh People's Republic of China
zh-cn People's Republic of China
zh-hk Hong Kong
zh-mo Macau
zh-sg Singapore
zh-tw Taiwan

Requirements

Namespace: System.Globalization

Assembly: mscorlib.dll

See Also

CultureInfo Members | System.Globalization Namespace