Share via


DateTimeFormatter.Languages Property

Definition

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

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

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.

Applies to