Locale.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;)Ljava/util/Locale$Builder;", "")]
public Java.Util.Locale.Builder SetLanguageTag(string languageTag);
[<Android.Runtime.Register("setLanguageTag", "(Ljava/lang/String;)Ljava/util/Locale$Builder;", "")>]
member this.SetLanguageTag : string -> Java.Util.Locale.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 Locale.forLanguageTag(java.lang.String)) are converted to their canonical form before being processed. Otherwise, the language tag must be well-formed (see Locale) or an exception is thrown (unlike Locale.forLanguageTag, which just discards ill-formed and following portions of the tag).
Java reference for java.util.Locale.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.