在 "Project Centennial" 应用程序中获取协议激活参数
Get protocol activation args in "Project Centennial" app
如何在转换为 UWP 应用程序的 Winforms 应用程序中访问协议激活参数?
问题是 OnActivated
方法不存在,所以我无法获得 IActivatedEventArgs
。
我假设您想处理文件类型,在这种情况下您可以正常检查 Environment.GetCommandLineArgs()
参数。第二个参数将是激活的文件或协议。
How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app?
无法将生命周期集成到已转换的 UWP 应用中。基本常见的场景是启用Toast通知、动态磁贴、应用服务和后台任务。
请检查Supported UWP APIs for converted desktop apps
部分官方示例:DesktopBridgeToUWP-Samples
如何在转换为 UWP 应用程序的 Winforms 应用程序中访问协议激活参数?
问题是 OnActivated
方法不存在,所以我无法获得 IActivatedEventArgs
。
我假设您想处理文件类型,在这种情况下您可以正常检查 Environment.GetCommandLineArgs()
参数。第二个参数将是激活的文件或协议。
How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app?
无法将生命周期集成到已转换的 UWP 应用中。基本常见的场景是启用Toast通知、动态磁贴、应用服务和后台任务。
请检查Supported UWP APIs for converted desktop apps
部分官方示例:DesktopBridgeToUWP-Samples