EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

ApplicationLanguages class

Applies to Windows and Windows Phone

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

Syntax


Public NotInheritable Class ApplicationLanguages

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The ApplicationLanguages class has these types of members:

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 an override for the app's preferred language, expressed as a BCP-47 language tag. This setting is persisted.

 

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.

Starting in Windows 8.1: Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that these extensions can affect the numeral system or calendar used by globalization objects.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

Object
BCP-47 language tags
Unicode Key/Type Definitions

 

 

Mostrar:
© 2014 Microsoft