CultureInfo.GetCultureInfoByIetfLanguageTag Method

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

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

public static CultureInfo GetCultureInfoByIetfLanguageTag (
	string name
)
public static CultureInfo GetCultureInfoByIetfLanguageTag (
	String name
)
public static function GetCultureInfoByIetfLanguageTag (
	name : String
) : CultureInfo
Not applicable.

Parameters

name

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

Return Value

A read-only CultureInfo object.

Exception typeCondition

ArgumentNullException

name is null.

ArgumentException

name does not correspond to a supported culture.

NoteNote:

This method and the IetfLanguageTag property are deprecated. Instead of using these elements, the application should use a new CultureInfo object and calls to the 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 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 TextInfo object associated with a 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 the Identification of Languages," and the most recent draft standard, Draft-phillips-langtags-05.txt, at http://go.microsoft.com/fwlink/?LinkId=100231.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: