Share via


ApplicationLanguages.GetLanguagesForUser(User) Method

Definition

Retrieves the language preferences of the specified user. This API is part of support for multi-user apps (MUA).

public:
 static IVectorView<Platform::String ^> ^ GetLanguagesForUser(User ^ user);
 static IVectorView<winrt::hstring> GetLanguagesForUser(User const& user);
public static IReadOnlyList<string> GetLanguagesForUser(User user);
function getLanguagesForUser(user)
Public Shared Function GetLanguagesForUser (user As User) As IReadOnlyList(Of String)

Parameters

user
User

The user to retrieve preferences for.

Returns

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

A list of normalized BCP-47 language tags representing the language preferences of the specified user.

Windows requirements

Requirements Description
Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to