EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.
1 de 1 pessoas classificaram isso como útil - Avalie este tópico

ApplicationLanguages.PrimaryLanguageOverride | primaryLanguageOverride property

Gets or sets the BCP-47 language tag of the app's preferred language.

Syntax


var primaryLanguageOverride = Windows.Globalization.ApplicationLanguages.primaryLanguageOverride;
Windows.Globalization.ApplicationLanguages.primaryLanguageOverride = primaryLanguageOverride;

Property value

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

The value of the top-ranked language in the user's ranked list of preferred languages (ApplicationLanguages.Languages). The app can set it to override the top language of the list.

Remarks

This change may not take effect immediately. You can listen to the QualifierValues property on the ResourceManager's DefaultContext.

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

See also

ApplicationLanguages
ApplicationLanguages.Languages
BCP-47 language tags

 

 

Build date: 12/4/2012

© 2013 Microsoft. Todos os direitos reservados.