Language.LanguageTag | languageTag property

Applies to Windows and Windows Phone

Gets the normalized BCP-47 language tag for this language.

Syntax


var languageTag = language.languageTag;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The normalized BCP-47 language tag.

Starting in Windows 8.1: Language tags can support Unicode extensions. See the Remarks for the Language constructor.

Remarks

If your app passes language tags from this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

Language
BCP-47 language tags

 

 

Show:
© 2014 Microsoft