ULocale.Builder.SetLanguageTag(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.
Resets the Builder to match the provided IETF BCP 47 language tag.
[Android.Runtime.Register("setLanguageTag", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)]
public Android.Icu.Util.ULocale.Builder SetLanguageTag(string languageTag);
[<Android.Runtime.Register("setLanguageTag", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)>]
member this.SetLanguageTag : string -> Android.Icu.Util.ULocale.Builder
Parameters
- languageTag
- String
the language tag
Returns
This builder.
- Attributes
Remarks
Resets the Builder to match the provided IETF BCP 47 language tag. Discards the existing state. Null and the empty string cause the builder to be reset, like clear(). Legacy tags (see ULocale.forLanguageTag) are converted to their canonical form before being processed. Otherwise, the language tag must be well-formed (see ULocale) or an exception is thrown (unlike ULocale.forLanguageTag, which just discards ill-formed and following portions of the tag).
Android reference for android.icu.util.ULocale.Builder.setLanguageTag.
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.