Language.TrySetInputMethodLanguageTag(String) Language.TrySetInputMethodLanguageTag(String) Language.TrySetInputMethodLanguageTag(String) Language.TrySetInputMethodLanguageTag(String) Language.TrySetInputMethodLanguageTag(String) Method

Definition

Tries to set the normalized BCP-47 language tag of this language.

public : static Platform::Boolean TrySetInputMethodLanguageTag(Platform::String languageTag)
static bool TrySetInputMethodLanguageTag(winrt::hstring languageTag) const;
public static bool TrySetInputMethodLanguageTag(String languageTag)
Public Shared Function TrySetInputMethodLanguageTag(languageTag As String) As bool
var bool = Windows.Globalization.Language.trySetInputMethodLanguageTag(languageTag);

Parameters

languageTag
String String String

The normalized BCP-47 language tag.

Starting in : Language tags can support Unicode extensions. See the Remarks for the Language constructor.

Returns

bool bool bool

true if the value is successfully set, otherwise false.

This method will only attempt to change the input language if the application is running on an IoT device. On non-IoT devices, the return value is always false.

Additional features and requirements

Capabilities
systemManagement