Share via


Name Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Name As String
public virtual string Name { get; }
public:
virtual property String^ Name {
    String^ get ();
}
abstract Name : string with get
override Name : string with get
function get Name () : String

Property Value

Type: System. . :: . .String
The culture name 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.

Remarks

The CultureInfo..::..Name property follows the naming standards provided in the CultureInfo class topic. It returns the short form of the culture name that excludes any indication of an alternate sort order. For example, if you instantiate a CultureInfo object by using the string "de-DE_phoneb" to reflect an alternate sort order, the Name property returns "de-DE".

To get the full name of the culture, you should use the DisplayName, EnglishName, or NativeName property.

.NET Framework Security

See Also

Reference

CultureInfo Class

System.Globalization Namespace