DateTimeFormatter.Languages Property
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.
Gets the priority list of language identifiers that is used when formatting dates and times.
public:
property IVectorView<Platform::String ^> ^ Languages { IVectorView<Platform::String ^> ^ get(); };
IVectorView<winrt::hstring> Languages();
public IReadOnlyList<string> Languages { get; }
var iVectorView = dateTimeFormatter.languages;
Public ReadOnly Property Languages As IReadOnlyList(Of String)
Property Value
The list of languages that is used.
Remarks
Initialize this class with a BCP-47 language tag. For example, to work with the best current user-preferred language, pass in the top value from Windows.System.UserProfile.GlobalizationPreferences.
Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that these extensions can affect the calendar used by Calendar objects.
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.