PaymentShippingOption 类

定义

一个类,其中包含有关寄送选项的信息。 此类反映 W3C PaymentShippingOption 字典

public ref class PaymentShippingOption sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentShippingOptionFactory, 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 PaymentShippingOption final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentShippingOptionFactory), 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 PaymentShippingOption
function PaymentShippingOption(label, amount, selected, tag)
Public NotInheritable Class PaymentShippingOption
继承
Object Platform::Object IInspectable PaymentShippingOption
属性

Windows 要求

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

构造函数

PaymentShippingOption(String, PaymentCurrencyAmount, Boolean, String)

创建新的 PaymentShippingOption 对象。

PaymentShippingOption(String, PaymentCurrencyAmount, Boolean)

创建新的 PaymentShippingOption 对象。

PaymentShippingOption(String, PaymentCurrencyAmount)

创建新的 PaymentShippingOption 对象。

属性

Amount

金额。

IsSelected

指示是否选中此寄送选项。 商家需要检查请求中只有一个发货选项标记为选中。

Label

标签。

Tag

标记。

适用于