共用方式為


PaymentMediator.CanMakePaymentAsync(PaymentRequest) 方法

定義

此方法會檢查付款是否可以在 paymentRequest 上進行。

public:
 virtual IAsyncOperation<PaymentCanMakePaymentResult ^> ^ CanMakePaymentAsync(PaymentRequest ^ paymentRequest) = CanMakePaymentAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PaymentCanMakePaymentResult> CanMakePaymentAsync(PaymentRequest const& paymentRequest);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PaymentCanMakePaymentResult> CanMakePaymentAsync(PaymentRequest paymentRequest);
function canMakePaymentAsync(paymentRequest)
Public Function CanMakePaymentAsync (paymentRequest As PaymentRequest) As IAsyncOperation(Of PaymentCanMakePaymentResult)

參數

paymentRequest
PaymentRequest

要檢查的付款要求。

傳回

傳回非同步作業,此作業會以 bool 完成,指出是否可以進行付款。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

適用於