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 中引入)

适用于