Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

ApplicationLanguages class

Specifies the language-related preferences that the app can use and maintain.

Syntax


var applicationLanguages = Windows.Globalization.ApplicationLanguages;

Attributes

MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.Globalization.IApplicationLanguagesStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

Members

The ApplicationLanguages class has these types of members:

Methods

The ApplicationLanguages class inherits methods from the Object class (C#/VB/C++).

Properties

The ApplicationLanguages class has these properties.

PropertyAccess typeDescription

Languages

Read-onlyGets the ranked list of current runtime language values preferred by the user.

ManifestLanguages

Read-onlyGets the app's declared list of supported languages.

PrimaryLanguageOverride

Read/writeGets or sets the BCP-47 language tag of the app's preferred language.

 

Remarks

The languages referenced in this class are represented by BCP-47 language tags. Each of these is a language identifier and not a locale name, although the two structurally can be the same. As a language tag, "en-US" means American English (or the dialect of English spoken in the United States). It makes no claims about the actual location of the speakers (though many of them do reside in the US) and no other claims about conventions that are used in the US such as the measurement system or currency.

Example:


Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-US"

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 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

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

Metadata

Windows.winmd

See also

Object
BCP-47 language tags

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.