語言

Locale.GetISOCountries 方法

定義

多載

名稱 Description
GetISOCountries()

回傳ISO 3166中定義的所有兩字母國家代碼清單。

GetISOCountries(Locale+IsoCountryCode)

GetISOCountries()

回傳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[]

傳回

String[]

一組 ISO 3166 兩字母國家代碼陣列。

屬性

備註

回傳ISO 3166中定義的所有兩字母國家代碼清單。 可以用來建立地點。 此方法等價 #getISOCountries(Locale.IsoCountryCode type) 於 ,且 typeIsoCountryCode#PART1_ALPHA2。

<b>註:</b> 本 Locale 類別也支援其他國家(地區)代碼,例如三字母數字的聯合國 M.49 區碼。 因此,此方法回傳的清單並不包含所有可用來建立 Locales 的有效代碼。

請注意,此方法不會回傳過時的兩字母國家代碼。 ISO3166-3 編碼用來指定這些過時代碼的國家代碼,可從 中檢索 #getISOCountries(Locale.IsoCountryCode type) ,為 typeIsoCountryCode#PART3。

Java 文件 java.util.Locale.getISOCountries()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetISOCountries(Locale+IsoCountryCode)

[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>

參數

傳回

屬性

適用於