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 ContactAddress

Constructors

NameDescription
ContactAddress()Creates an empty address, whose members are set by the initializer.

ContactAddress()

ContactAddress.cs

Creates an empty address, whose members are set by the initializer.

public ContactAddress()

Properties

NameDescription
AddressLineGets the lines of the address that are not covered by the other members (e.g. the street and the house number).
CityGets the city, or the empty string.
CountryGets the CLDR (Common Locale Data Repository) region code of the country (e.g. FR), or the empty string.
DependentLocalityGets the dependent locality or sublocality (e.g. a neighborhood), or the empty string.
OrganizationGets the organization, or the empty string.
PhoneGets the phone number of the recipient, or the empty string.
PostalCodeGets the postal code, or the empty string.
RecipientGets the name of the recipient, or the empty string.
RegionGets the top-level administrative subdivision of the country (e.g. a state), or the empty string.
SortingCodeGets the sorting code (e.g. a CEDEX in France), or the empty string.

Gets 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; }

Gets 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.cs

Gets the dependent locality or sublocality (e.g. a neighborhood), or the empty string.

public string DependentLocality { get; init; }

Organization

ContactAddress.cs

Gets the organization, or the empty string.

public string Organization { get; init; }

Gets the phone number of the recipient, or the empty string.

public string Phone { get; init; }

Gets the postal code, or the empty string.

public string PostalCode { get; init; }

Gets the name of the recipient, or the empty string.

public string Recipient { get; init; }

Gets the top-level administrative subdivision of the country (e.g. a state), or the empty string.

public string Region { get; init; }

Gets the sorting code (e.g. a CEDEX in France), or the empty string.

public string SortingCode { get; init; }