ApplicationLanguages.Languages | languages property

Applies to Windows and Windows Phone

Gets the ranked list of current runtime language values preferred by the user.

Syntax


public:
static property IVectorView<String^>^ Languages { 
   IVectorView<String^>^ get();
}

Property value

Type: IVectorView<String> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<String> [.NET]

A computed list of languages that merges the app's declared supported languages (ApplicationLanguages.ManifestLanguages) with the user's ranked list of preferred languages.

Remarks

This list is the recommended source of the best current runtime language value(s) preferred by the user.

Note  This property yields the same values as the language list exposed by Windows.ApplicationModel.Resources.Core.ResourceManager.DefaultContext.Languages.

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

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

ApplicationLanguages
ApplicationLanguages.ManifestLanguages
Windows.ApplicationModel.Resources.Core.ResourceManager.DefaultContext.Languages

 

 

Show:
© 2014 Microsoft