ContactAddress Class
A physical address (https://w3c.github.io/contact-picker/#contactaddress): the shipping address of a payment request (PaymentRequest.ShippingAddress, PaymentResponse.ShippingAddress). The user agent UI backend creates one from the input of the user (PaymentSheetPrompt.ChangeShippingAddressAsync, PaymentSheetResponse.ShippingAddress).
public sealed class ContactAddressConstructors
| Name | Description |
|---|---|
| ContactAddress() | Creates an empty address, whose members are set by the initializer. |
ContactAddress()
ContactAddress.csCreates an empty address, whose members are set by the initializer.
public ContactAddress()Properties
| Name | Description |
|---|---|
| AddressLine | Gets the lines of the address that are not covered by the other members (e.g. the street and the house number). |
| City | Gets the city, or the empty string. |
| Country | Gets the CLDR (Common Locale Data Repository) region code of the country (e.g. FR), or the empty string. |
| DependentLocality | Gets the dependent locality or sublocality (e.g. a neighborhood), or the empty string. |
| Organization | Gets the organization, or the empty string. |
| Phone | Gets the phone number of the recipient, or the empty string. |
| PostalCode | Gets the postal code, or the empty string. |
| Recipient | Gets the name of the recipient, or the empty string. |
| Region | Gets the top-level administrative subdivision of the country (e.g. a state), or the empty string. |
| SortingCode | Gets the sorting code (e.g. a CEDEX in France), or the empty string. |
AddressLine
ContactAddress.csGets the lines of the address that are not covered by the other members (e.g. the street and the house number).
public IReadOnlyList<string> AddressLine { get; init; }Gets the city, or the empty string.
public string City { get; init; }Country
ContactAddress.csGets the CLDR (Common Locale Data Repository) region code of the country (e.g. FR), or the empty string.
public string Country { get; init; }DependentLocality
ContactAddress.csGets the dependent locality or sublocality (e.g. a neighborhood), or the empty string.
public string DependentLocality { get; init; }Property value
See also
Organization
ContactAddress.csGets the organization, or the empty string.
public string Organization { get; init; }Phone
ContactAddress.csGets the phone number of the recipient, or the empty string.
public string Phone { get; init; }PostalCode
ContactAddress.csGets the postal code, or the empty string.
public string PostalCode { get; init; }Recipient
ContactAddress.csGets the name of the recipient, or the empty string.
public string Recipient { get; init; }Region
ContactAddress.csGets the top-level administrative subdivision of the country (e.g. a state), or the empty string.
public string Region { get; init; }SortingCode
ContactAddress.csGets the sorting code (e.g. a CEDEX in France), or the empty string.
public string SortingCode { get; init; }