PaymentAddress 类

定义

此类表示付款请求 API 中使用的地址。 此类反映 W3C PaymentAddress 接口

public ref class PaymentAddress sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PaymentAddress final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PaymentAddress
function PaymentAddress()
Public NotInheritable Class PaymentAddress
继承
Object Platform::Object IInspectable PaymentAddress
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

构造函数

PaymentAddress()

创建新的 PaymentAddress 对象。

属性

AddressLines

地址行。

City

城市。

Country

国家/ 地区。 值必须来自 CLDR 标准。

DependentLocality

城市中的依赖位置。

LanguageCode

地址的语言代码。 值必须是 BCP-47 标准指定的有效 IETF 语言标记。

Organization

地址中的组织。

PhoneNumber

收件人的电话号码。

PostalCode

地址邮政编码。

Properties

此字段用于允许扩展 类。 它不存在于 W3C 定义中。

Recipient

收件人的名称。

Region

国家/地区的区域。

SortingCode

排序代码。

适用于