Jaa


Language.TrySetInputMethodLanguageTag(String) Method

Definition

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

public:
 static bool TrySetInputMethodLanguageTag(Platform::String ^ languageTag);
 static bool TrySetInputMethodLanguageTag(winrt::hstring const& languageTag);
public static bool TrySetInputMethodLanguageTag(string languageTag);
function trySetInputMethodLanguageTag(languageTag)
Public Shared Function TrySetInputMethodLanguageTag (languageTag As String) As Boolean

Parameters

languageTag
String

Platform::String

winrt::hstring

The normalized BCP-47 language tag.

Returns

Boolean

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.

Windows requirements

App capabilities
systemManagement

Remarks

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.

Applies to