共用方式為


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

數量。

適用於