ULocale.Builder.SetLanguage(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.
Sets the language.
[Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)]
public Android.Icu.Util.ULocale.Builder SetLanguage(string language);
[<Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)>]
member this.SetLanguage : string -> Android.Icu.Util.ULocale.Builder
Parameters
- language
- String
the language
Returns
This builder.
- Attributes
Remarks
Sets the language. If language is the empty string or null, the language in this Builder is removed. Otherwise, the language must be well-formed or an exception is thrown.
The typical language value is a two or three-letter language code as defined in ISO639.
Android reference for android.icu.util.ULocale.Builder.setLanguage.
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.