Compartilhar via


Locale.GetDisplayCountry(Locale) Method

Definition

Returns the name of this locale's country, localized to locale.

[Android.Runtime.Register("getDisplayCountry", "(Ljava/util/Locale;)Ljava/lang/String;", "")]
public string GetDisplayCountry (Java.Util.Locale locale);
[<Android.Runtime.Register("getDisplayCountry", "(Ljava/util/Locale;)Ljava/lang/String;", "")>]
member this.GetDisplayCountry : Java.Util.Locale -> string

Parameters

locale
Locale

Returns

The name of the country appropriate to the locale.

Attributes

Remarks

Returns the name of this locale's country, localized to locale. Returns the empty string if this locale does not correspond to a specific country.

Java documentation for java.util.Locale.getDisplayCountry(java.util.Locale).

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