CultureAndRegionInfoBuilder.IetfLanguageTag Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a culture name formatted according to the RFC 3066 standard, "Tags for the Identification of Languages."

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

public string IetfLanguageTag { get; set; }
/** @property */
public String get_IetfLanguageTag ()

/** @property */
public void set_IetfLanguageTag (String value)

public function get IetfLanguageTag () : String

public function set IetfLanguageTag (value : String)

Property Value

A culture name formatted according to RFC 3066.

Exception typeCondition


In a set operation, the value is a null reference (Nothing in Visual Basic).


In a set operation, the length of the value is not from 1 through 84 characters.


In a set operation, a component of the name specified in the value is empty or longer than 8 characters, not an alphanumeric character or hyphen (-), or the name contains a leading or trailing hyphen.

The IetfLanguageTag property gets or sets a culture name formatted according to RFC 3066, which can be different from the culture name returned by the Name property. For example, in the .NET Framework version 1.0, the neutral culture name for Traditional Chinese is "zh-CHT". In contrast, RFC 3066 defines that culture name as "zh-HANT".

An RFC 3066 culture name consists of several components. A typical culture name consists of a mandatory language identifier, an optional script identifier, and an optional region identifier. For example, a valid RFC 3066 culture name for the Serbian language, the Cyrillic script, and the region of Serbia is "sr-Cyrl-SR".

Note that two or more cultures can have the same IETF language tag.

For more information, see RFC 3066, "Tags for the Identification of Languages," at Request For Comments.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0