語言

Address.CountryCode 屬性

定義

回傳地址的國家代碼,例如「US」,若未知則為空代碼。 -或- 將地址的國家代碼設為給定的字串,該字串可能是空的。

public virtual string? CountryCode { [Android.Runtime.Register("getCountryCode", "()Ljava/lang/String;", "GetGetCountryCodeHandler")] get; [Android.Runtime.Register("setCountryCode", "(Ljava/lang/String;)V", "GetSetCountryCode_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getCountryCode", "()Ljava/lang/String;", "GetGetCountryCodeHandler")>]
[<set: Android.Runtime.Register("setCountryCode", "(Ljava/lang/String;)V", "GetSetCountryCode_Ljava_lang_String_Handler")>]
member this.CountryCode : string with get, set

屬性值

回傳地址的國家代碼,例如「US」,若未知則為空代碼。

屬性

備註

財產取得者文件:

回傳地址的國家代碼,例如「US」,若未知則為空代碼。

Java 文件 android.location.Address.getCountryCode()。

屬性設定文件:

將地址的國家代碼設為給定的字串,該字串可能是空的。

Java 文件 android.location.Address.setCountryCode(java.lang.String)。

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

適用於