Address.CountryCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the country code of the address, for example "US", or null if it is unknown. -or- Sets the country code of the address to the given String, which may be null.
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
Property Value
- Attributes
Remarks
Property getter documentation:
Returns the country code of the address, for example "US", or null if it is unknown.
Java documentation for android.location.Address.getCountryCode()
.
Property setter documentation:
Sets the country code of the address to the given String, which may be null.
Java documentation for android.location.Address.setCountryCode(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.