启动 Microsoft Store 应用Launch the Microsoft Store app

本主题介绍了 ms-windows 应用商店: URI 方案。This topic describes the ms-windows-store: URI scheme. 应用可以使用此 URI 方案,通过 LaunchUriAsync 方法,将 Microsoft Store 应用启动到存储中的特定页面。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-store: 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.

应用商店 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.

应用商店 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. 应用商店 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