gpt4 book ai didi

c# - Windows Phone 8.1 商店应用程序 - 商店链接

转载 作者:可可西里 更新时间:2023-11-01 08:02:36 25 4
gpt4 key购买 nike

在 Windows 8.1 应用程序中,我们可以使用 ms-windows-store 协议(protocol)链接到商店应用程序。

var storeURI = new Uri("ms-windows-store:PDP?PFN=<package family name>");
await Windows.System.Launcher.LaunchUriAsync(storeURI);

Windows Phone 8.1 有类似的方法吗?我不想链接到商店中应用程序的网页 ( http://windowsphone.com/s?appId=appGUID ),然后在商店中打开该应用程序。我想直接在商店中打开应用程序。

最佳答案

在 Windows Phone 8.1 中,我们可以使用 ms-windows-store 协议(protocol)链接到商店。

到详情页:

var uri = new Uri(string.Format("ms-windows-store:navigate?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

查看页面:

var uri = new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

到搜索页面:

var uri = new Uri(string.Format(@"ms-windows-store:search?keyword={0}",keyword));
await Windows.System.Launcher.LaunchUriAsync(uri);

关于c# - Windows Phone 8.1 商店应用程序 - 商店链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25733552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com