System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag Method

Deprecated. Retrieves a read-only System.Globalization.CultureInfo object having linguistic characteristics that are identified by the specified RFC 4646 language tag.

Syntax

public static CultureInfo GetCultureInfoByIetfLanguageTag (string name)

Parameters

name
The name of a language as specified by the RFC 4646 standard.

Returns

A read-only System.Globalization.CultureInfo object.

Remarks

Note:

This method and the CultureInfo.IetfLanguageTag property are deprecated. Instead of using these elements, the application should use a new System.Globalization.CultureInfo object and calls to the CultureInfo.Name property. IETF tags and names are identical.

The RFC 4646 standard that is maintained by the Internet Engineering Task Force (IETF) defines an IETF language tag, which provides a uniform means of identifying a language. The format of an IETF language tag is the same as the culture name returned by the CultureInfo.Name property, but does not identify a culture uniquely. Different cultures share the same IETF language tag if those cultures have identical linguistic characteristics. The linguistic characteristics of a culture are contained in the System.Globalization.TextInfo object associated with a System.Globalization.CultureInfo object.

An IETF language tag consists of a mandatory language identifier, an optional script identifier, and an optional region identifier.

Your applications should use the retrieved culture to control language-specific tasks, such as managing a spelling or grammar checker. Applications should not use the retrieved culture to control culture-specific tasks, such as sorting text or formatting times and dates.

For more information, see RFC 4646, "Tags for Identifying Languages," and the most recent draft standard, Draft-phillips-langtags-05.txt, at tp://go.microsoft.com/fwlink/?LinkId=100231.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0