ULocale.Builder.SetRegion(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 region.
[Android.Runtime.Register("setRegion", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)]
public Android.Icu.Util.ULocale.Builder SetRegion(string region);
[<Android.Runtime.Register("setRegion", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)>]
member this.SetRegion : string -> Android.Icu.Util.ULocale.Builder
Parameters
- region
- String
the region
Returns
This builder.
- Attributes
Remarks
Sets the region. If region is null or the empty string, the region in this Builder is removed. Otherwise, the region must be well-formed or an exception is thrown.
The typical region value is a two-letter ISO 3166 code or a three-digit UN M.49 area code.
The region value in the Locale created by the Builder is always normalized to upper case.
Android reference for android.icu.util.ULocale.Builder.setRegion.
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.