asp.net.ph

CultureInfo.CultureTypes Property

System.Globalization Namespace   CultureInfo Class


Gets the culture types that pertain to the current CultureInfo object.

[ VB ]
 _
Public ReadOnly Property CultureTypes As CultureTypes

[ C# ]
[ComVisibleAttribute ( false )] 
public CultureTypes CultureTypes { get; }

[ C++ ]
[ComVisibleAttribute ( false )] 
public:
property CultureTypes CultureTypes {
   CultureTypes get ( );
}

[ JScript ]
public function get CultureTypes ( ) : CultureTypes

Property Value

A bitwise combination of one or more CultureTypes values. There is no default value.

Remarks

This property returns the set of culture types that the current CultureInfo object belongs to.

The cultures are generally grouped into three sets: the invariant culture, the neutral cultures, and the specific cultures.

The invariant culture is culture-insensitive. You can specify the invariant culture by name using an empty string ( "" ). InvariantCulture retrieves an instance of the invariant culture. It is associated with the English language but not with any country/region. It can be used in almost any method in the Globalization namespace that requires a culture. The invariant culture must be used only by processes that require culture-independent results, such as system services; otherwise, it produces results that might be linguistically incorrect or culturally inappropriate.

A neutral culture is a culture that is associated with a language but not with a country/region. A specific culture is a culture that is associated with a language and a country/region. For example, fr is a neutral culture and fr-FR is a specific culture. Note that zh-CHS ( Simplified Chinese ) and zh-CHT ( Traditional Chinese ) are neutral cultures.

Example

The following example lists the culture types associated with the current CultureInfo object.

 Show me 


See Also

CultureInfo Members   CultureTypes Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph