PaymentItem(String, PaymentCurrencyAmount) 构造函数

定义

创建 PaymentItem 对象。 默认情况下,Pending 属性设置为 false。

public:
 PaymentItem(Platform::String ^ label, PaymentCurrencyAmount ^ amount);
 PaymentItem(winrt::hstring const& label, PaymentCurrencyAmount const& amount);
public PaymentItem(string label, PaymentCurrencyAmount amount);
function PaymentItem(label, amount)
Public Sub New (label As String, amount As PaymentCurrencyAmount)

参数

label
String

Platform::String

winrt::hstring

标签。

amount
PaymentCurrencyAmount

金额。

适用于