语言

StorePurchaseResult 类

定义

提供请求的响应数据,以购买应用提供的应用或产品。

public ref class StorePurchaseResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StorePurchaseResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StorePurchaseResult
Public NotInheritable Class StorePurchaseResult
继承
Object Platform::Object IInspectable StorePurchaseResult
属性

Windows 要求

要求 说明
设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Services.Store.StoreContract (在 v1.0 中引入)

注解

StoreContext、StoreProduct、StoreSku 或 StoreAvailability 类的 RequestPurchaseAsync 方法返回此类型的对象。

属性

名称 说明
ExtendedError

获取购买请求的错误代码(如果操作遇到错误)。

Status

获取购买请求的状态。

适用于