Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.CultureInfo.name Field

Gets the culture value (locale) that represents a language and region.

Syntax

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.

cs

// Get the name field of the CurrentCulture object
var cultureName = cultureObject.name;

vb

// Get the name field of the CurrentCulture object
var cultureName = cultureObject.name;