[UWP] [C#]在UWP下启动应用程序 [英] [UWP][C#] Launching an application under UWP

查看:113
本文介绍了[UWP] [C#]在UWP下启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我想使用UWP应用推出Windows商店应用程序(如Skype)。

I want to launch a windows store application (like Skype) using a UWP app.

我不确定如何调用第三方Windows应用商店。

I am not sure how I can call a third party windows store app.

我尝试过Windows.System.Launcher.LaunchUriAsync,但我无法启动特定应用。

I tried Windows.System.Launcher.LaunchUriAsync but I was not able to launch specific app.

请介意给我一些可能的解决方案?

Would mind give me some possible solutions?

最好的问候

Reza

推荐答案

Windows.System.Launcher类是一般UWP应用程序启动其他应用程序的唯一方法。 Skype等应用程序提供了可以使用LaunchUriAsync启动它们的协议。请参阅Skype URI API参考:  https://msdn.microsoft.com/en-us/library/office/dn745882.aspx

The Windows.System.Launcher classes are the only methods provided for general UWP apps to launch other apps. Apps such as Skype provide protocols by which they can be launched with LaunchUriAsync. See Skype URI API reference: https://msdn.microsoft.com/en-us/library/office/dn745882.aspx

如果目标应用程序未提供协议然后没有一个干净的方式来启动它。对于桌面应用,您可以包含完整信任组件并从那里启动应用程序,但仅在桌面设备上可用,需要特殊权限才能将
发布到商店,并且启动的应用程序可能会出现在后台而非比前景。

If the target app doesn't provide a protocol then there isn't a clean way to launch it. For desktop apps you could include a full trust component and launch the app from there, but is available only on desktop devices, requires special permissions to publish to the store, and the launched app is likely to appear in the background rather than the foreground.


这篇关于[UWP] [C#]在UWP下启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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