CultureInfo.IetfLanguageTag 属性


已弃用。Deprecated. 获取某种语言的 RFC 4646 标准标识。Gets the RFC 4646 standard identification for a language.

 property System::String ^ IetfLanguageTag { System::String ^ get(); };
public string IetfLanguageTag { get; }
member this.IetfLanguageTag : string
Public ReadOnly Property IetfLanguageTag As String


一个表示某种语言的 RFC 4646 标准标识的字符串。A string that is the RFC 4646 standard identification for a language.




不推荐使用此属性和 GetCultureInfoByIetfLanguageTag 方法。This property and the GetCultureInfoByIetfLanguageTag method are deprecated. 相反,应使用 CultureInfo.Name 属性。Instead, you should use a the CultureInfo.Name property. IETF 标记和名称是相同的。IETF tags and names are identical.

Internet 工程任务组(IETF)维护的 RFC 4646 标准定义了一个 IETF 语言标记,该标记提供了一种统一的语言识别方法。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. IETF 语言标记的格式与 Name 属性返回的区域性名称类似,但不会唯一标识区域性。The format of an IETF language tag is similar to the culture name returned by the Name property, but does not identify a culture uniquely. 也就是说,如果不同的区域性具有相同的语言特征,则共享相同的 IETF 语言标记。That is, different cultures share the same IETF language tag if those cultures have identical linguistic characteristics. 区域性的语言特征包含在与 CultureInfo 对象关联的 TextInfo 对象中。The linguistic characteristics of a culture are contained in the TextInfo object associated with a CultureInfo object.

IETF 语言标记由必需的语言标识符、可选脚本标识符和可选区域标识符组成。An IETF language tag consists of a mandatory language identifier, an optional script identifier, and an optional region identifier.

有关详细信息,请参阅RFC 5646 "用于标识语言的标记"For more information, see RFC 5646, "Tags for Identifying Languages. 有关子标记的列表,请参阅IANA 语言子标记注册表。For a list of subtags, see The IANA Language Subtag Registry.