WinRT中是否有任何类作为WP中的MarketPlaceReviewTask? [英] Are there any class in WinRT as MarketPlaceReviewTask in WP?

查看:95
本文介绍了WinRT中是否有任何类作为WP中的MarketPlaceReviewTask?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WinRT中是否有任何类作为WP中的MarketPlaceReview或MarketPlaceSearch任务?

Are there any class in WinRT as MarketPlaceReview or MarketPlaceSearch Tasks in WP?

谢谢.

推荐答案

您可以将Windows Store的协议与特定参数一起使用,以启动与Store like相关的多项任务,例如

You can use Windows Store's protocol with specific arguments to launch several tasks related to Store like

如果您想打开任何应用程序的评论页面,则可以使用此行打开.

If you want to open review page for any app then, you can open with this line.

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=MY_PACKAGE_FAMILY_NAME"));

如果您在商店"应用中打开特定应用的页面,则可以使用此行打开.

If you open the page of particular app in Store app then you can open with this line.

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:PDP?PFN=MY_PACKAGE_FAMILY_NAME"));

Package.appxmanifest文件中可以找到

MY_PACKAGE_FAMILY_NAME.

MY_PACKAGE_FAMILY_NAME can be found in Package.appxmanifest file.

如果要在Store中搜索,则可以在此行中打开带有搜索结果的Store应用.

If you want to search within Store then you can open the Store app with search result with this line.

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:Search?query=YOUR_SEARCH_KEYWORDS"));

以下是打开诺基亚音乐应用程序的评论页面,应用程序页面本身和示例的示例.查询分别用文本诺基亚音乐"存储.

The below are the examples which open review page for Nokia Music app, the app page itself & queries Store with text "nokia music" respectively.

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=NokiaCorporation.NokiaMusic_6d0q6r3z979nw"));

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:PDP?PFN=NokiaCorporation.NokiaMusic_6d0q6r3z979nw"));

await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:Search?query=nokia music"));

这篇关于WinRT中是否有任何类作为WP中的MarketPlaceReviewTask?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆