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.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the ranked list of current runtime language values preferred by the user. | |
| Read-only | Gets the app's declared list of supported languages. | |
| Read/write | Gets 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 |
|
|
Metadata |
|
See also
Build date: 12/4/2012
