导出 (0) 打印
全部展开
信息
您所需的主题如下所示。但此主题未包含在此库中。

Windows.ApplicationModel.Store Namespace

提供与 Windows 商店交互的类型和成员。可以使用该类的成员来检查应用程序的许可证状态,并确定它是试用版还是有效许可证。还可以检查应用程序内功能并启用应用程序内购买。此类还允许您在将应用程序提交到 Windows 应用商店之前模拟这些功能。

注意  您需要有效的 Windows 商店开发人员帐户才能与 Windows 商店进行交互。如果没有 windows 开发人员帐户,则仅可使用模拟功能。

成员

Windows.ApplicationModel.Store命名空间 具有这些类型的成员:

Windows.ApplicationModel.Store命名空间 具有这些类。

说明
CurrentApp Defines methods and properties you can use to get license and listing info about the current app and perform in-app purchases.
CurrentAppSimulator Defines methods and properties used to instantiate an object that you can use to get simulated license info during testing.
LicenseInformation Provides access to the current app's license metadata.
ListingInformation Provides the listing info that describes the app in the Windows Store.
ProductLicense Provides info about a license that is associated with an in-app offer.
ProductListing Provides localized info about an in-app offer in your app.
ProductPurchaseDisplayProperties Used to provide the product name that is displayed to the user at time of purchase. This class is used in the creation of a RequestProductPurchaseAsync operation to visually represent a specific offer within a large catalog of in-app purchases that is represented by a single product in the Store.
PurchaseResults Contains information detailing the results of an in-app purchase.
UnfulfilledConsumable Contains purchase and product information for an unfulfilled consumable.

 

委托

Windows.ApplicationModel.Store命名空间 具有这些委托。

委托说明
LicenseChangedEventHandler Represents the method that will handle the LicenseChanged event.

 

枚举

Windows.ApplicationModel.Store命名空间 具有这些枚举。

Enumeration说明
FulfillmentResult Defines values used to indicate fulfillment status for an in-app consumable purchase.
ProductPurchaseStatus Defines values used to indicate the transaction status of an in-app purchase.
ProductType Specifies the product type for a product.

 

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8

命名空间

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

元数据

Windows.winmd

另请参见

试用版应用程序和应用程序内购买的示例

 

 

显示:
© 2014 Microsoft