Partager via


ULocale.Country Property

Definition

Returns the country/region code for this locale, which will either be the empty string or an uppercase ISO 3166 2-letter code.

public string? Country { [Android.Runtime.Register("getCountry", "()Ljava/lang/String;", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getCountry", "()Ljava/lang/String;", "", ApiSince=24)>]
member this.Country : string

Property Value

Attributes

Remarks

Returns the country/region code for this locale, which will either be the empty string or an uppercase ISO 3166 2-letter code.

Java documentation for android.icu.util.ULocale.getCountry().

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