Is there a possibility to start another App or Program from a Windows 8 Store App (C#)(是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序)
问题描述
我想从我的 Windows 应用商店应用启动另一个应用或程序.例如,我的应用程序正在显示电子邮件,因此如果有人点击此类电子邮件,Outlook 应该会打开.这在App-Sandbox"中是否可行?
I want to start another App or Program from my Windows Store App. For example my App is showing emails, so if someone clicks on such an email Outlook should open. Is this possible in an "App-Sandbox"?
推荐答案
不可能只启动任意应用程序,但通过自定义协议激活,您可以启动处理该协议的应用程序,如果未安装 -操作系统会要求用户安装它.这意味着如果您可以在您的应用程序中定义自定义协议 - 您可以使用此协议从另一个应用程序启动它,假设没有其他应用程序注册来处理它.任何 XBOX Live 应用程序就是一个例子——如果你检查它们的清单文件——它们都处理自定义协议.
It is not possible to just launch an arbitrary application, but with custom protocol activation you can launch an app that handles that protocol and if it is not installed - the OS will ask the user to install it. It means that if you can define a custom protocol in your app - you can launch it from another app with this protocol assuming no other app registers to handle it. An example of that is any XBOX Live app - if you check their manifest files - they all handle custom protocols.
如果您的具体问题是关于按名称或位置启动特定应用程序,那么不,这是不可能的,但如果您知道要启动的应用程序处理的协议 - 您可以尝试使用它 - 请记住可能有其他应用程序处理该协议.
If your specific question is about launching a specific app by name or location then no, this is not possible, but if you know a protocol handled by the app you want to launch - you can try using that - just bear in mind that there might be other apps that handle that protocol.
这篇关于是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序


- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 输入按键事件处理程序 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01