mscorlib(4.0.0.0) API with additions
System.Globalization.CultureInfo Class Reference

Provides information about a specific culture (called a locale for unmanaged code development). The information includes the names for the culture, the writing system, the calendar used, the sort order of strings, and formatting for dates and numbers. More...

Inheritance diagram for System.Globalization.CultureInfo:
[legend]
Collaboration diagram for System.Globalization.CultureInfo:
[legend]

Public Member Functions

 CultureInfo (string name)
 Initializes a new instance of the T:System.Globalization.CultureInfo class based on the culture specified by name. More...
 
 CultureInfo (string name, bool useUserOverride)
 Initializes a new instance of the T: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. More...
 
 CultureInfo (int culture)
 Initializes a new instance of the T:System.Globalization.CultureInfo class based on the culture specified by the culture identifier. More...
 
 CultureInfo (int culture, bool useUserOverride)
 Initializes a new instance of the T: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. More...
 
override bool Equals (object value)
 Determines whether the specified object is the same culture as the current T:System.Globalization.CultureInfo. More...
 
override int GetHashCode ()
 Serves as a hash function for the current T:System.Globalization.CultureInfo, suitable for hashing algorithms and data structures, such as a hash table. More...
 
override string ToString ()
 Returns a string containing the name of the current T:System.Globalization.CultureInfo in the format languagecode2-country/regioncode2. More...
 
virtual object GetFormat (Type formatType)
 Gets an object that defines how to format the specified type. More...
 
void ClearCachedData ()
 Refreshes cached culture-related information. More...
 
CultureInfo GetConsoleFallbackUICulture ()
 Gets an alternate user interface culture suitable for console applications when the default graphic user interface culture is unsuitable. More...
 
virtual object Clone ()
 Creates a copy of the current T:System.Globalization.CultureInfo. More...
 

Static Public Member Functions

static CultureInfo CreateSpecificCulture (string name)
 Creates a T:System.Globalization.CultureInfo that represents the specific culture that is associated with the specified name. More...
 
static CultureInfo [] GetCultures (CultureTypes types)
 Gets the list of supported cultures filtered by the specified T:System.Globalization.CultureTypes parameter. More...
 
static CultureInfo ReadOnly (CultureInfo ci)
 Returns a read-only wrapper around the specified T:System.Globalization.CultureInfo object. More...
 
static CultureInfo GetCultureInfo (int culture)
 Retrieves a cached, read-only instance of a culture by using the specified culture identifier. More...
 
static CultureInfo GetCultureInfo (string name)
 Retrieves a cached, read-only instance of a culture using the specified culture name. More...
 
static CultureInfo GetCultureInfo (string name, string altName)
 Retrieves a cached, read-only instance of a culture. Parameters specify a culture that is initialized with the T:System.Globalization.TextInfo and T:System.Globalization.CompareInfo objects specified by another culture. More...
 
static CultureInfo GetCultureInfoByIetfLanguageTag (string name)
 Deprecated. Retrieves a read-only T:System.Globalization.CultureInfo object having linguistic characteristics that are identified by the specified RFC 4646 language tag. More...
 

Public Attributes

virtual int LCID => m_cultureData.ILANGUAGE
 Gets the culture identifier for the current T:System.Globalization.CultureInfo. More...
 
bool UseUserOverride => m_cultureData.UseUserOverride
 Gets a value indicating whether the current T:System.Globalization.CultureInfo object uses the user-selected culture settings. More...
 

Properties

static CultureInfo CurrentCulture [get, set]
 Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the current thread. More...
 
static CultureInfo CurrentUICulture [get, set]
 Gets or sets the T: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. More...
 
static CultureInfo InstalledUICulture [get]
 Gets the T:System.Globalization.CultureInfo that represents the culture installed with the operating system. More...
 
static CultureInfo DefaultThreadCurrentCulture [get, set]
 Gets or sets the default culture for threads in the current application domain. More...
 
static CultureInfo DefaultThreadCurrentUICulture [get, set]
 Gets or sets the default UI culture for threads in the current application domain. More...
 
static CultureInfo InvariantCulture [get]
 Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant). More...
 
virtual CultureInfo Parent [get]
 Gets the T:System.Globalization.CultureInfo that represents the parent culture of the current T:System.Globalization.CultureInfo. More...
 
virtual int KeyboardLayoutId [get]
 Gets the active input locale identifier. More...
 
virtual string Name [get]
 Gets the culture name in the format languagecode2-country/regioncode2. More...
 
string IetfLanguageTag [get]
 Deprecated. Gets the RFC 4646 standard identification for a language. More...
 
virtual string DisplayName [get]
 Gets the full localized culture name. More...
 
virtual string NativeName [get]
 Gets the culture name, consisting of the language, the country/region, and the optional script, that the culture is set to display. More...
 
virtual string EnglishName [get]
 Gets the culture name in the format languagefull [country/regionfull] in English. More...
 
virtual string TwoLetterISOLanguageName [get]
 Gets the ISO 639-1 two-letter code for the language of the current T:System.Globalization.CultureInfo. More...
 
virtual string ThreeLetterISOLanguageName [get]
 Gets the ISO 639-2 three-letter code for the language of the current T:System.Globalization.CultureInfo. More...
 
virtual string ThreeLetterWindowsLanguageName [get]
 Gets the three-letter code for the language as defined in the Windows API. More...
 
virtual CompareInfoCompareInfo [get]
 Gets the T:System.Globalization.CompareInfo that defines how to compare strings for the culture. More...
 
virtual TextInfo TextInfo [get]
 Gets the T:System.Globalization.TextInfo that defines the writing system associated with the culture. More...
 
virtual bool IsNeutralCulture [get]
 Gets a value indicating whether the current T:System.Globalization.CultureInfo represents a neutral culture. More...
 
CultureTypes????? CultureTypes [get]
 Gets the culture types that pertain to the current T:System.Globalization.CultureInfo object. More...
 
virtual NumberFormatInfo NumberFormat [get, set]
 Gets or sets a T:System.Globalization.NumberFormatInfo that defines the culturally appropriate format of displaying numbers, currency, and percentage. More...
 
virtual DateTimeFormatInfo DateTimeFormat [get, set]
 Gets or sets a T:System.Globalization.DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times. More...
 
virtual Calendar Calendar [get]
 Gets the default calendar used by the culture. More...
 
virtual Calendar [] OptionalCalendars [get]
 Gets the list of calendars that can be used by the culture. More...
 
bool IsReadOnly [get]
 Gets a value indicating whether the current T:System.Globalization.CultureInfo is read-only. More...
 

Detailed Description

Provides information about a specific culture (called a locale for unmanaged code development). The information includes the names for the culture, the writing system, the calendar used, the sort order of strings, and formatting for dates and numbers.

Definition at line 16 of file CultureInfo.cs.

Constructor & Destructor Documentation

◆ CultureInfo() [1/4]

System.Globalization.CultureInfo.CultureInfo ( string  name)

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

Parameters
nameA predefined T:System.Globalization.CultureInfo name, P:System.Globalization.CultureInfo.Name of an existing T:System.Globalization.CultureInfo, or Windows-only culture name. name is not case-sensitive.
Exceptions
T:System.ArgumentNullExceptionname is null.
T:System.Globalization.CultureNotFoundExceptionname is not a valid culture name. For more information, see the Notes to Callers section.

Definition at line 753 of file CultureInfo.cs.

◆ CultureInfo() [2/4]

System.Globalization.CultureInfo.CultureInfo ( string  name,
bool  useUserOverride 
)

Initializes a new instance of the T: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.

Parameters
nameA predefined T:System.Globalization.CultureInfo name, P:System.Globalization.CultureInfo.Name of an existing T:System.Globalization.CultureInfo, or Windows-only culture name. name is not case-sensitive.
useUserOverrideA Boolean that denotes whether to use the user-selected culture settings (true) or the default culture settings (false).
Exceptions
T:System.ArgumentNullExceptionname is null.
T:System.Globalization.CultureNotFoundExceptionname is not a valid culture name. See the Notes to Callers section for more information.

Definition at line 765 of file CultureInfo.cs.

◆ CultureInfo() [3/4]

System.Globalization.CultureInfo.CultureInfo ( int  culture)

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

Parameters
cultureA predefined T:System.Globalization.CultureInfo identifier, P:System.Globalization.CultureInfo.LCID property of an existing T:System.Globalization.CultureInfo object, or Windows-only culture identifier.
Exceptions
T:System.ArgumentOutOfRangeExceptionculture is less than zero.
T:System.Globalization.CultureNotFoundExceptionculture is not a valid culture identifier. See the Notes to Callers section for more information.

Definition at line 803 of file CultureInfo.cs.

◆ CultureInfo() [4/4]

System.Globalization.CultureInfo.CultureInfo ( int  culture,
bool  useUserOverride 
)

Initializes a new instance of the T: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.

Parameters
cultureA predefined T:System.Globalization.CultureInfo identifier, P:System.Globalization.CultureInfo.LCID property of an existing T:System.Globalization.CultureInfo object, or Windows-only culture identifier.
useUserOverrideA Boolean that denotes whether to use the user-selected culture settings (true) or the default culture settings (false).
Exceptions
T:System.ArgumentOutOfRangeExceptionculture is less than zero.
T:System.Globalization.CultureNotFoundExceptionculture is not a valid culture identifier. See the Notes to Callers section for more information.

Definition at line 815 of file CultureInfo.cs.

Member Function Documentation

◆ ClearCachedData()

void System.Globalization.CultureInfo.ClearCachedData ( )

Refreshes cached culture-related information.

Definition at line 1086 of file CultureInfo.cs.

◆ Clone()

virtual object System.Globalization.CultureInfo.Clone ( )
virtual

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

Returns
A copy of the current T:System.Globalization.CultureInfo.

Implements System.ICloneable.

Definition at line 1165 of file CultureInfo.cs.

◆ CreateSpecificCulture()

static CultureInfo System.Globalization.CultureInfo.CreateSpecificCulture ( string  name)
static

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

Parameters
nameA predefined T:System.Globalization.CultureInfo name or the name of an existing T:System.Globalization.CultureInfo object. name is not case-sensitive.
Returns
A T:System.Globalization.CultureInfo object that represents:The invariant culture, if name is an empty string ("").-or- The specific culture associated with name , if name is a neutral culture.-or- The culture specified by name , if name is already a specific culture.
Exceptions
T:System.Globalization.CultureNotFoundExceptionname is not a valid culture name.-or- The culture specified by name does not have a specific culture associated with it.
T:System.NullReferenceExceptionname is null.

Definition at line 953 of file CultureInfo.cs.

◆ Equals()

override bool System.Globalization.CultureInfo.Equals ( object  value)

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

Parameters
valueThe object to compare with the current T:System.Globalization.CultureInfo.
Returns
true if value is the same culture as the current T:System.Globalization.CultureInfo; otherwise, false.

Definition at line 1034 of file CultureInfo.cs.

◆ GetConsoleFallbackUICulture()

CultureInfo System.Globalization.CultureInfo.GetConsoleFallbackUICulture ( )

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

Returns
An alternate culture that is used to read and display text on the console.

Definition at line 1150 of file CultureInfo.cs.

◆ GetCultureInfo() [1/3]

static CultureInfo System.Globalization.CultureInfo.GetCultureInfo ( int  culture)
static

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

Parameters
cultureA locale identifier (LCID).
Returns
A read-only T:System.Globalization.CultureInfo object.
Exceptions
T:System.ArgumentOutOfRangeExceptionculture is less than zero.
T:System.Globalization.CultureNotFoundExceptionculture specifies a culture that is not supported. See the Notes to Caller section for more information.

Definition at line 1350 of file CultureInfo.cs.

◆ GetCultureInfo() [2/3]

static CultureInfo System.Globalization.CultureInfo.GetCultureInfo ( string  name)
static

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

Parameters
nameThe name of a culture. name is not case-sensitive.
Returns
A read-only T:System.Globalization.CultureInfo object.
Exceptions
T:System.ArgumentNullExceptionname is null.
T:System.Globalization.CultureNotFoundExceptionname specifies a culture that is not supported. See the Notes to Callers section for more information.

Definition at line 1371 of file CultureInfo.cs.

◆ GetCultureInfo() [3/3]

static CultureInfo System.Globalization.CultureInfo.GetCultureInfo ( string  name,
string  altName 
)
static

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

Parameters
nameThe name of a culture. name is not case-sensitive.
altNameThe name of a culture that supplies the T:System.Globalization.TextInfo and T:System.Globalization.CompareInfo objects used to initialize name . altName is not case-sensitive.
Returns
A read-only T:System.Globalization.CultureInfo object.
Exceptions
T:System.ArgumentNullExceptionname or altName is null.
T:System.Globalization.CultureNotFoundExceptionname or altName specifies a culture that is not supported. See the Notes to Callers section for more information.

Definition at line 1393 of file CultureInfo.cs.

◆ GetCultureInfoByIetfLanguageTag()

static CultureInfo System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag ( string  name)
static

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

Parameters
nameThe name of a language as specified by the RFC 4646 standard.
Returns
A read-only T:System.Globalization.CultureInfo object.
Exceptions
T:System.ArgumentNullExceptionname is null.
T:System.Globalization.CultureNotFoundExceptionname does not correspond to a supported culture.

Definition at line 1418 of file CultureInfo.cs.

◆ GetCultures()

static CultureInfo [] System.Globalization.CultureInfo.GetCultures ( CultureTypes  types)
static

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

Parameters
typesA bitwise combination of the enumeration values that filter the cultures to retrieve.
Returns
An array that contains the cultures specified by the types parameter. The array of cultures is unsorted.
Exceptions
T:System.ArgumentOutOfRangeExceptiontypes specifies an invalid combination of T:System.Globalization.CultureTypes values.

Definition at line 1020 of file CultureInfo.cs.

◆ GetFormat()

virtual object System.Globalization.CultureInfo.GetFormat ( Type  formatType)
virtual

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

Parameters
formatTypeThe T:System.Type for which to get a formatting object. This method only supports the T:System.Globalization.NumberFormatInfo and T:System.Globalization.DateTimeFormatInfo types.
Returns
The value of the P:System.Globalization.CultureInfo.NumberFormat property, which is a T:System.Globalization.NumberFormatInfo containing the default number format information for the current T:System.Globalization.CultureInfo, if formatType is the T:System.Type object for the T:System.Globalization.NumberFormatInfo class.-or- The value of the P:System.Globalization.CultureInfo.DateTimeFormat property, which is a T:System.Globalization.DateTimeFormatInfo containing the default date and time format information for the current T:System.Globalization.CultureInfo, if formatType is the T:System.Type object for the T:System.Globalization.DateTimeFormatInfo class.-or- null, if formatType is any other object.

Implements System.IFormatProvider.

Definition at line 1072 of file CultureInfo.cs.

◆ GetHashCode()

override int System.Globalization.CultureInfo.GetHashCode ( )

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

Returns
A hash code for the current T:System.Globalization.CultureInfo.

Definition at line 1055 of file CultureInfo.cs.

◆ ReadOnly()

static CultureInfo System.Globalization.CultureInfo.ReadOnly ( CultureInfo  ci)
static

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

Parameters
ciThe T:System.Globalization.CultureInfo object to wrap.
Returns
A read-only T:System.Globalization.CultureInfo wrapper around ci .
Exceptions
T:System.ArgumentNullExceptionci is null.

Definition at line 1202 of file CultureInfo.cs.

◆ ToString()

override string System.Globalization.CultureInfo.ToString ( )

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

Returns
A string containing the name of the current T:System.Globalization.CultureInfo.

Definition at line 1063 of file CultureInfo.cs.

Member Data Documentation

◆ LCID

virtual int System.Globalization.CultureInfo.LCID => m_cultureData.ILANGUAGE

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

Returns
The culture identifier for the current T:System.Globalization.CultureInfo.

Definition at line 304 of file CultureInfo.cs.

◆ UseUserOverride

bool System.Globalization.CultureInfo.UseUserOverride => m_cultureData.UseUserOverride

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

Returns
true if the current T:System.Globalization.CultureInfo uses the user-selected culture settings; otherwise, false.

Definition at line 628 of file CultureInfo.cs.

Property Documentation

◆ Calendar

virtual Calendar System.Globalization.CultureInfo.Calendar
get

Gets the default calendar used by the culture.

Returns
A T:System.Globalization.Calendar that represents the default calendar used by the culture.

Definition at line 592 of file CultureInfo.cs.

◆ CompareInfo

virtual CompareInfo? System.Globalization.CultureInfo.CompareInfo
get

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

Returns
The T:System.Globalization.CompareInfo that defines how to compare strings for the culture.

Definition at line 447 of file CultureInfo.cs.

◆ CultureTypes

CultureTypes????? System.Globalization.CultureInfo.CultureTypes
get

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

Returns
A bitwise combination of one or more T:System.Globalization.CultureTypes values. There is no default value.

Definition at line 515 of file CultureInfo.cs.

◆ CurrentCulture

CultureInfo System.Globalization.CultureInfo.CurrentCulture
staticgetset

Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the current thread.

Returns
An object that represents the culture used by the current thread.
Exceptions
T:System.ArgumentNullExceptionThe property is set to null.

Definition at line 120 of file CultureInfo.cs.

◆ CurrentUICulture

CultureInfo System.Globalization.CultureInfo.CurrentUICulture
staticgetset

Gets or sets the T: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.

Returns
The culture used by the Resource Manager to look up culture-specific resources at run time.
Exceptions
T:System.ArgumentNullExceptionThe property is set to null.
T:System.ArgumentExceptionThe property is set to a culture name that cannot be used to locate a resource file. Resource filenames can include only letters, numbers, hyphens, or underscores.

Definition at line 174 of file CultureInfo.cs.

◆ DateTimeFormat

virtual DateTimeFormatInfo System.Globalization.CultureInfo.DateTimeFormat
getset

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

Returns
A T:System.Globalization.DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.
Exceptions
T:System.ArgumentNullExceptionThe property is set to null.
T:System.InvalidOperationExceptionThe P:System.Globalization.CultureInfo.DateTimeFormat property or any of the T:System.Globalization.DateTimeFormatInfo properties is set, and the T:System.Globalization.CultureInfo is read-only.

Definition at line 563 of file CultureInfo.cs.

◆ DefaultThreadCurrentCulture

CultureInfo System.Globalization.CultureInfo.DefaultThreadCurrentCulture
staticgetset

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

Returns
The default culture for threads in the current application domain, or null if the current system culture is the default thread culture in the application domain.

Definition at line 220 of file CultureInfo.cs.

◆ DefaultThreadCurrentUICulture

CultureInfo System.Globalization.CultureInfo.DefaultThreadCurrentUICulture
staticgetset

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

Returns
The default UI culture for threads in the current application domain, or null if the current system UI culture is the default thread UI culture in the application domain.
Exceptions
T:System.ArgumentExceptionIn a set operation, the P:System.Globalization.CultureInfo.Name property value is invalid.

Definition at line 240 of file CultureInfo.cs.

◆ DisplayName

virtual string System.Globalization.CultureInfo.DisplayName
get

Gets the full localized culture name.

Returns
The full localized culture name in the format languagefull [country/regionfull], where languagefull is the full name of the language and country/regionfull is the full name of the country/region.

Definition at line 373 of file CultureInfo.cs.

◆ EnglishName

virtual string System.Globalization.CultureInfo.EnglishName
get

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

Returns
The culture name in the format languagefull [country/regionfull] in English, where languagefull is the full name of the language and country/regionfull is the full name of the country/region.

Definition at line 399 of file CultureInfo.cs.

◆ IetfLanguageTag

string System.Globalization.CultureInfo.IetfLanguageTag
get

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

Returns
A string that is the RFC 4646 standard identification for a language.

Definition at line 353 of file CultureInfo.cs.

◆ InstalledUICulture

CultureInfo System.Globalization.CultureInfo.InstalledUICulture
staticget

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

Returns
The T:System.Globalization.CultureInfo that represents the culture installed with the operating system.

Definition at line 197 of file CultureInfo.cs.

◆ InvariantCulture

CultureInfo System.Globalization.CultureInfo.InvariantCulture
staticget

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

Returns
The object that is culture-independent (invariant).

Definition at line 263 of file CultureInfo.cs.

◆ IsNeutralCulture

virtual bool System.Globalization.CultureInfo.IsNeutralCulture
get

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

Returns
true if the current T:System.Globalization.CultureInfo represents a neutral culture; otherwise, false.

Definition at line 503 of file CultureInfo.cs.

◆ IsReadOnly

bool System.Globalization.CultureInfo.IsReadOnly
get

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

Returns
true if the current T:System.Globalization.CultureInfo is read-only; otherwise, false. The default is false.

Definition at line 635 of file CultureInfo.cs.

◆ KeyboardLayoutId

virtual int System.Globalization.CultureInfo.KeyboardLayoutId
get

Gets the active input locale identifier.

Returns
A 32-bit signed number that specifies an input locale identifier.

Definition at line 310 of file CultureInfo.cs.

◆ Name

virtual string System.Globalization.CultureInfo.Name
get

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

Returns
The culture name in the format languagecode2-country/regioncode2. languagecode2 is a lowercase two-letter code derived from ISO 639-1. country/regioncode2 is derived from ISO 3166 and usually consists of two uppercase letters, or a BCP-47 language tag.

Definition at line 321 of file CultureInfo.cs.

◆ NativeName

virtual string System.Globalization.CultureInfo.NativeName
get

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

Returns
The culture name. consisting of the full name of the language, the full name of the country/region, and the optional script. The format is discussed in the description of the T:System.Globalization.CultureInfo class.

Definition at line 386 of file CultureInfo.cs.

◆ NumberFormat

virtual NumberFormatInfo System.Globalization.CultureInfo.NumberFormat
getset

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

Returns
A T:System.Globalization.NumberFormatInfo that defines the culturally appropriate format of displaying numbers, currency, and percentage.
Exceptions
T:System.ArgumentNullExceptionThe property is set to null.
T:System.InvalidOperationExceptionThe P:System.Globalization.CultureInfo.NumberFormat property or any of the T:System.Globalization.NumberFormatInfo properties is set, and the T:System.Globalization.CultureInfo is read-only.

Definition at line 533 of file CultureInfo.cs.

◆ OptionalCalendars

virtual Calendar [] System.Globalization.CultureInfo.OptionalCalendars
get

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

Returns
An array of type T:System.Globalization.Calendar that represents the calendars that can be used by the culture represented by the current T:System.Globalization.CultureInfo.

Definition at line 611 of file CultureInfo.cs.

◆ Parent

virtual CultureInfo System.Globalization.CultureInfo.Parent
get

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

Returns
The T:System.Globalization.CultureInfo that represents the parent culture of the current T:System.Globalization.CultureInfo.

Definition at line 275 of file CultureInfo.cs.

◆ TextInfo

virtual TextInfo System.Globalization.CultureInfo.TextInfo
get

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

Returns
The T:System.Globalization.TextInfo that defines the writing system associated with the culture.

Definition at line 480 of file CultureInfo.cs.

◆ ThreeLetterISOLanguageName

virtual string System.Globalization.CultureInfo.ThreeLetterISOLanguageName
get

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

Returns
The ISO 639-2 three-letter code for the language of the current T:System.Globalization.CultureInfo.

Definition at line 424 of file CultureInfo.cs.

◆ ThreeLetterWindowsLanguageName

virtual string System.Globalization.CultureInfo.ThreeLetterWindowsLanguageName
get

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

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

Definition at line 435 of file CultureInfo.cs.

◆ TwoLetterISOLanguageName

virtual string System.Globalization.CultureInfo.TwoLetterISOLanguageName
get

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

Returns
The ISO 639-1 two-letter code for the language of the current T:System.Globalization.CultureInfo.

Definition at line 412 of file CultureInfo.cs.


The documentation for this class was generated from the following file: