System.Globalization.CultureInfo Members

The members of System.Globalization.CultureInfo are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by the culture identifier.

Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by name.

Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by the culture identifier and on the Boolean that specifies whether to use the user-selected culture settings from the system.

Initializes a new instance of the System.Globalization.CultureInfo class based on the culture specified by name and on the Boolean that specifies whether to use the user-selected culture settings from the system.

Public Properties

[read-only]
CalendarCalendar.

Gets the default calendar used by the culture.

[read-only]
CompareInfoCompareInfo.

Gets the System.Globalization.CompareInfo that defines how to compare strings for the culture.

[read-only]
CultureTypesCultureTypes.

Gets the culture types that pertain to the current System.Globalization.CultureInfo object.

[read-only]
static
CurrentCultureCultureInfo.

Gets the System.Globalization.CultureInfo object that represents the culture used by the current thread.

[read-only]
static
CurrentUICultureCultureInfo.

Gets the System.Globalization.CultureInfo object that represents the current user interface culture used by the Resource Manager to look up culture-specific resources at run time.

DateTimeFormatDateTimeFormatInfo.

Gets or sets a System.Globalization.DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.

static
DefaultThreadCurrentCultureCultureInfo.

Gets or sets the default culture for threads in the current application domain.

static
DefaultThreadCurrentUICultureCultureInfo.

Gets or sets the default UI culture for threads in the current application domain.

[read-only]
DisplayNamestring.

Gets the full localized culture name.

[read-only]
EnglishNamestring.

Gets the culture name in the format languagefull [country/regionfull] in English.

[read-only]
IetfLanguageTagstring.

Deprecated. Gets the RFC 4646 standard identification for a language.

[read-only]
static
InstalledUICultureCultureInfo.

Gets the System.Globalization.CultureInfo that represents the culture installed with the operating system.

[read-only]
static
InvariantCultureCultureInfo.

Gets the System.Globalization.CultureInfo object that is culture-independent (invariant).

[read-only]
IsNeutralCulturebool.

Gets a value indicating whether the current System.Globalization.CultureInfo represents a neutral culture.

[read-only]
IsReadOnlybool.

Gets a value indicating whether the current System.Globalization.CultureInfo is read-only.

[read-only]
KeyboardLayoutIdint.

Gets the active input locale identifier.

[read-only]
LCIDint.

Gets the culture identifier for the current System.Globalization.CultureInfo.

[read-only]
Namestring.

Gets the culture name in the format languagecode2-country/regioncode2.

[read-only]
NativeNamestring.

Gets the culture name, consisting of the language, the country/region, and the optional script, that the culture is set to display.

NumberFormatNumberFormatInfo.

Gets or sets a System.Globalization.NumberFormatInfo that defines the culturally appropriate format of displaying numbers, currency, and percentage.

[read-only]
OptionalCalendarsCalendar[].

Gets the list of calendars that can be used by the culture.

[read-only]
ParentCultureInfo.

Gets the System.Globalization.CultureInfo that represents the parent culture of the current System.Globalization.CultureInfo.

[read-only]
TextInfoTextInfo.

Gets the System.Globalization.TextInfo that defines the writing system associated with the culture.

[read-only]
ThreeLetterISOLanguageNamestring.

Gets the ISO 639-2 three-letter code for the language of the current System.Globalization.CultureInfo.

[read-only]
ThreeLetterWindowsLanguageNamestring.

Gets the three-letter code for the language as defined in the Windows API.

[read-only]
TwoLetterISOLanguageNamestring.

Gets the ISO 639-1 two-letter code for the language of the current System.Globalization.CultureInfo.

[read-only]
UseUserOverridebool.

Gets a value indicating whether the current System.Globalization.CultureInfo uses the user-selected culture settings.

Public Methods

ClearCachedData()

Refreshes cached culture-related information.

Clone() : object

Creates a copy of the current System.Globalization.CultureInfo.

static
CreateSpecificCulture(string) : CultureInfo

Creates a System.Globalization.CultureInfo that represents the specific culture that is associated with the specified name.

override
Equals(object) : bool

Determines whether the specified object is the same culture as the current System.Globalization.CultureInfo.

GetConsoleFallbackUICulture() : CultureInfo

Gets an alternate user interface culture suitable for console applications when the default graphic user interface culture is unsuitable.

static
GetCultureInfo(int) : CultureInfo

Retrieves a cached, read-only instance of a culture by using the specified culture identifier.

static
GetCultureInfo(string) : CultureInfo

Retrieves a cached, read-only instance of a culture using the specified culture name.

static
GetCultureInfo(string, string) : CultureInfo

Retrieves a cached, read-only instance of a culture. Parameters specify a culture that is initialized with the System.Globalization.TextInfo and System.Globalization.CompareInfo objects specified by another culture.

static
GetCultureInfoByIetfLanguageTag(string) : CultureInfo

Deprecated. Retrieves a read-only System.Globalization.CultureInfo object having linguistic characteristics that are identified by the specified RFC 4646 language tag.

static
GetCultures(CultureTypes) : CultureInfo[]

Gets the list of supported cultures filtered by the specified System.Globalization.CultureTypes parameter.

GetFormat(Type) : object

Gets an object that defines how to format the specified type.

override
GetHashCode() : int

Serves as a hash function for the current System.Globalization.CultureInfo, suitable for hashing algorithms and data structures, such as a hash table.

static
ReadOnly(CultureInfo) : CultureInfo

Returns a read-only wrapper around the specified System.Globalization.CultureInfo.

override
ToString() : string

Returns a string containing the name of the current System.Globalization.CultureInfo in the format languagecode2-country/regioncode2.