Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Language.TrySetInputMethodLanguageTag(String) Method

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.

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

Requirements Description
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


Feedback

Was this page helpful?