CultureInfo.DisplayName Property
Gets the full localized culture name.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.StringThe 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.
This property represents the localized name of the CultureInfo object.
Culture names may vary due to scripting or formatting conventions. You should use the returned name for display, and not attempt to parse it.
If a custom culture is created by means of the CultureAndRegionInfoBuilder class, the DisplayName property is initialized to the value of the NativeName property.
The following code example displays several properties of the neutral cultures.
Note |
|---|
The example displays the zh-CHS and zh-CHT cultures with the 0x0004 and 0x7C04 culture identifiers, respectively. However, your Windows Vista applications should use the zh-Hans name instead of zh-CHS and the zh-Hant name instead of zh-CHT. The zh-Hans and zh-Hant names represent the current standard, and should be used unless you have a reason for using the older names. |
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
