Locale.ForLanguageTag(String) Locale.ForLanguageTag(String) Method

Definition

Returns a locale for a given BCP-47 language tag.

[Android.Runtime.Register("forLanguageTag", "(Ljava/lang/String;)Ljava/util/Locale;", "", ApiSince=21)]
public static Java.Util.Locale ForLanguageTag (string languageTag);
static member ForLanguageTag : string -> Java.Util.Locale

Parameters

languageTag
String String

Returns

Exceptions

if languageTag is null.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to