打开 Microsoft Store 应用Launch the Microsoft Store app

本主题介绍ms windows 应用商店: URI 方案。This topic describes the ms-windows-store: URI scheme. 您的应用程序可以使用此 URI 方案通过启动到存储区中的特定页的 Microsoft Store 应用 LaunchUriAsync 方法。Your app can use this URI scheme to launch the Microsoft Store app to specific pages in the store by using the LaunchUriAsync method.

此示例显示了如何在“游戏”页面中打开 Microsoft Store:This example shows how to open the Store to the Games page:

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://navigatetopage/?Id=Games"));

ms-windows-应用商店:URI 方案引用ms-windows-store: URI scheme reference

描述DescriptionURI 方案URI scheme
启动应用商店的主页。Launches the home page of the Store.ms-windows-store://homems-windows-store://home
启动应用商店中的顶级垂直类别内容。Launches a top-level vertical in the Store.

注意:并非所有用户都有权访问所有纵向市场。Note: Not all users have access to all verticals.

ms-windows-store://navigatetopage/?Id=Appsms-windows-store://navigatetopage/?Id=Apps

ms-windows-store://navigatetopage/?Id=Gamesms-windows-store://navigatetopage/?Id=Games

ms-windows-store://navigatetopage/?Id=Musicms-windows-store://navigatetopage/?Id=Music

ms-windows-store://navigatetopage/?Id=Videoms-windows-store://navigatetopage/?Id=Video

ms-windows-store://navigatetopage/?Id=LOBms-windows-store://navigatetopage/?Id=LOB

启动产品的产品详细信息页面 (PDP)。Launches the product details page (PDP) for a product.

Store ID 推荐用于 Windows 10 上的客户,其将适用于所有操作系统版本,但执行此操作时的早期方法 (例如:PFN) 仍然是支持的。Store ID is recommended for customers on Windows 10, and will work on all OS versions, but the earlier ways of doing it (ex: PFN) are still supported.

这些值可在合作伙伴中心应用标识页为每个应用的应用程序管理部分。These values can be found in Partner Center on the App identity page in the App management section for each app.

Store IDStore ID

(建议)(Recommended)

ms-windows-store://pdp/?ProductId=9WZDNCRFHVJLms-windows-store://pdp/?ProductId=9WZDNCRFHVJL

程序包系列名称 (PFN)Package Family Name (PFN) ms-windows-store://pdp/?PFN= Microsoft.Office.OneNote_8wekyb3d8bbwems-windows-store://pdp/?PFN= Microsoft.Office.OneNote_8wekyb3d8bbwe
产品 ID (Windows Phone 7.x/8.x)Product ID (Windows Phone 7.x/8.x) ms-windows-store://pdp/?PhoneAppId=ca05b3ab-f157-450c-8c49-a1f127f5e71dms-windows-store://pdp/?PhoneAppId=ca05b3ab-f157-450c-8c49-a1f127f5e71d
产品 ID (Windows 8.x)Product ID (Windows 8.x) ms-windows-store://pdp/?AppId=f022389f-f3a6-417e-ad23-704fbdf57117ms-windows-store://pdp/?AppId=f022389f-f3a6-417e-ad23-704fbdf57117
启动产品的写评论体验。Launches the write a review experience for a product. Store IDStore ID

(建议)(Recommended)

ms-windows-store://review/?ProductId=9WZDNCRFHVJLms-windows-store://review/?ProductId=9WZDNCRFHVJL
程序包系列名称 (PFN)Package Family Name (PFN) ms-windows-store://review/?PFN= Microsoft.Office.OneNote_8wekyb3d8bbwems-windows-store://review/?PFN= Microsoft.Office.OneNote_8wekyb3d8bbwe
产品 ID (Windows Phone 7.x/8.x)Product ID (Windows Phone 7.x/8.x) ms-windows-store://reviewapp/?AppId=ca05b3ab-f157-450c-8c49-a1f127f5e71dms-windows-store://reviewapp/?AppId=ca05b3ab-f157-450c-8c49-a1f127f5e71d
产品 ID (Windows 8.x)Product ID (Windows 8.x) ms-windows-store://review/?AppId=f022389f-f3a6-417e-ad23-704fbdf57117ms-windows-store://review/?AppId=f022389f-f3a6-417e-ad23-704fbdf57117
启动与文件扩展名关联的产品的搜索。Launches a search for products associated with a file extension. ms-windows-store://assoc/?FileExt=pdfms-windows-store://assoc/?FileExt=pdf
启动与协议关联的产品的搜索。Launches a search for products associated with a protocol. ms-windows-store://assoc/?Protocol=ms-wordms-windows-store://assoc/?Protocol=ms-word
启动与一个或多个标记关联的产品的搜索。Launches a search for products associated with one or more tags. 标记应用逗号分隔。Tags should be separated by commas.

ms-windows-store://assoc/?Tags=Photos_Rich_Media_Editms-windows-store://assoc/?Tags=Photos_Rich_Media_Edit

ms-windows-store://assoc/?Tags=Photos_Rich_Media_Edit, Camera_Capture_Appms-windows-store://assoc/?Tags=Photos_Rich_Media_Edit, Camera_Capture_App

启动特定查询的搜索。Launches a search for the specified query. 允许查询中存在空格。Spaces in the query are allowed. ms-windows-store://search/?query=OneNotems-windows-store://search/?query=OneNote
启动类别中的产品的搜索。Launches a search for products in a category.

ms-windows-store://browse/?type=Apps&cat=Productivityms-windows-store://browse/?type=Apps&cat=Productivity

ms-windows-store://browse/?type=Apps&cat=Health+%26+fitnessms-windows-store://browse/?type=Apps&cat=Health+%26+fitness

启动指定的发布者中产品的搜索。Launches a search for products from the specified publisher. 允许名称中存在空格。Spaces in the name are allowed. ms-windows-store://publisher/?name=Microsoft Corporationms-windows-store://publisher/?name=Microsoft Corporation
启动下载和 更新页面。Launches the downloads and updates page. ms-windows-store://downloadsandupdatesms-windows-store://downloadsandupdates
启动应用商店设置 页面。Launches the Store settings page. ms-windows-store://settingsms-windows-store://settings