ApplicationLanguages Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the language-related preferences that a Windows App SDK application can use and maintain.
public ref class ApplicationLanguages abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApplicationLanguages final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ApplicationLanguages
Public Class ApplicationLanguages
- Inheritance
- Attributes
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 can be the same structurally. In the following example, the "en-US" language tag identifies American English (or the dialect of English spoken in the United States), but does not specify a location or any other conventions used in the United States (such as the measurement system or currency).
Microsoft.Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-US";
Note
Language tags support the Unicode extensions "ca-" and "nu-", which can affect the numeral system or calendar used by globalization objects.
For more details, see Unicode Key/Type Definitions.
Properties
Languages |
Gets a ranked list of supported languages. |
ManifestLanguages |
Gets the collection of supported languages declared in the app manifest. |
PrimaryLanguageOverride |
Gets or sets a single, preferred language override of the supported languages collection returned by Languages. |