加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

应用内购买 – 如何在Windows Phone 8上获取应用内购买产品的货

发布时间:2020-12-13 19:32:30 所属栏目:Windows 来源:网络整理
导读:要跟踪我们的 Windows Phone 8应用程序进行的应用内购买,我们想知道在应用程序内部采购的货币.现在我们使用FormattedPrice属性知道价格,就像这样: public static async void LoadProductListing(){ ListingInformation listings = await CurrentApp.LoadLis
要跟踪我们的 Windows Phone 8应用程序进行的应用内购买,我们想知道在应用程序内部采购的货币.现在我们使用FormattedPrice属性知道价格,就像这样:
public static async void LoadProductListing()
{
    ListingInformation listings = await CurrentApp.LoadListingInformationAsync();
    ProductListing product = listings.ProductListings["SomeProductID"];

    String price = product.FormattedPrice;
}

这样一来,价格格式只有一个标志,比如

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读