PaymentMediator.CanMakePaymentAsync(PaymentRequest) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此方法检查是否可以在 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 中引入)
|