ULocale.GetDisplayCountry Method

Definition

Overloads

GetDisplayCountry(ULocale)

Returns this locale's country localized for display in the provided locale.

GetDisplayCountry(String, ULocale)

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale.

GetDisplayCountry(String, String)

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale.

GetDisplayCountry(ULocale)

Returns this locale's country localized for display in the provided locale.

[Android.Runtime.Register("getDisplayCountry", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)]
public string? GetDisplayCountry (Android.Icu.Util.ULocale? displayLocale);
[<Android.Runtime.Register("getDisplayCountry", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)>]
member this.GetDisplayCountry : Android.Icu.Util.ULocale -> string

Parameters

displayLocale
ULocale

the locale in which to display the name.

Returns

the localized country name.

Attributes

Remarks

Returns this locale's country localized for display in the provided locale. <b>Warning: </b>this is for the region part of a valid locale ID; it cannot just be the region code (like "FR"). To get the display name for a region alone, or for other options, use LocaleDisplayNames instead.

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

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

GetDisplayCountry(String, ULocale)

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale.

[Android.Runtime.Register("getDisplayCountry", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetDisplayCountry (string? localeID, Android.Icu.Util.ULocale? displayLocale);
[<Android.Runtime.Register("getDisplayCountry", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetDisplayCountry : string * Android.Icu.Util.ULocale -> string

Parameters

localeID
String

the id of the locale whose country will be displayed.

displayLocale
ULocale

the locale in which to display the name.

Returns

the localized country name.

Attributes

Remarks

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale. <b>Warning: </b>this is for the region part of a valid locale ID; it cannot just be the region code (like "FR"). To get the display name for a region alone, or for other options, use LocaleDisplayNames instead. This is a cover for the ICU4C API.

Java documentation for android.icu.util.ULocale.getDisplayCountry(java.lang.String, android.icu.util.ULocale).

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

GetDisplayCountry(String, String)

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale.

[Android.Runtime.Register("getDisplayCountry", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetDisplayCountry (string? localeID, string? displayLocaleID);
[<Android.Runtime.Register("getDisplayCountry", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetDisplayCountry : string * string -> string

Parameters

localeID
String

the id of the locale whose country will be displayed

displayLocaleID
String

the id of the locale in which to display the name.

Returns

the localized country name.

Attributes

Remarks

<strong>[icu]</strong> Returns a locale's country localized for display in the provided locale. <b>Warning: </b>this is for the region part of a valid locale ID; it cannot just be the region code (like "FR"). To get the display name for a region alone, or for other options, use LocaleDisplayNames instead. This is a cover for the ICU4C API.

Java documentation for android.icu.util.ULocale.getDisplayCountry(java.lang.String, java.lang.String).

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