Language

Locale.GetISOCountries Method

Definition

Overloads

Name Description
GetISOCountries()

Returns a list of all 2-letter country codes defined in ISO 3166.

GetISOCountries(Locale+IsoCountryCode)

Returns a Set of ISO3166 country codes for the specified type.

GetISOCountries()

Returns a list of all 2-letter country codes defined in ISO 3166.

[Android.Runtime.Register("getISOCountries", "()[Ljava/lang/String;", "")]
public static string[] GetISOCountries();
[<Android.Runtime.Register("getISOCountries", "()[Ljava/lang/String;", "")>]
static member GetISOCountries : unit -> string[]

Returns

String[]

An array of ISO 3166 two-letter country codes.

Attributes

Remarks

Returns a list of all 2-letter country codes defined in ISO 3166. Can be used to create Locales. This method is equivalent to #getISOCountries(Locale.IsoCountryCode type) with typeIsoCountryCode#PART1_ALPHA2.

<b>Note:</b> The Locale class also supports other codes for country (region), such as 3-letter numeric UN M.49 area codes. Therefore, the list returned by this method does not contain ALL valid codes that can be used to create Locales.

Note that this method does not return obsolete 2-letter country codes. ISO3166-3 codes which designate country codes for those obsolete codes, can be retrieved from #getISOCountries(Locale.IsoCountryCode type) with typeIsoCountryCode#PART3.

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

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

GetISOCountries(Locale+IsoCountryCode)

Returns a Set of ISO3166 country codes for the specified type.

[Android.Runtime.Register("getISOCountries", "(Ljava/util/Locale$IsoCountryCode;)Ljava/util/Set;", "", ApiSince=34)]
public static System.Collections.Generic.ICollection<string> GetISOCountries(Java.Util.Locale.IsoCountryCode type);
[<Android.Runtime.Register("getISOCountries", "(Ljava/util/Locale$IsoCountryCode;)Ljava/util/Set;", "", ApiSince=34)>]
static member GetISOCountries : Java.Util.Locale.IsoCountryCode -> System.Collections.Generic.ICollection<string>

Parameters

type
Locale.IsoCountryCode

Locale.IsoCountryCode specified ISO code type.

Returns

a Set of ISO3166 country codes for the specified type

Attributes

Remarks

Returns a Set of ISO3166 country codes for the specified type.

Java reference for java.util.Locale.getISOCountries.

Applies to