Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Gets the culture value (locale) that represents a language and region.
var a = cultureInfoVar.name;
Return Value
The culture value (locale) that represents a language and region.
Remarks
Use the name field to get the culture value. A culture value provides information about a specific culture (locale). The culture value is a combination of two letters for a language and two uppercase letters for a country or region. Examples include es-MX (Spanish Mexico), es-CO (Spanish Columbia), and fr-CA (French Canada).
Example
The following example shows how to use the name field of the Sys.CultureInfo class. This example is part of a larger example in the dateTimeFormat Field topic.
// Get the name field of the CurrentCulture object
var cultureName = cultureObject.name;
// Get the name field of the CurrentCulture object
var cultureName = cultureObject.name;