在WinRT中的默认Web浏览器中打开一个URL器中、WinRT、Web、URL

2023-09-03 00:48:05 作者:人心隔俩扎ゞ

这个问题说明了一切。基本上,我只是想知道在WinRT中的替代方案是:

 的Process.Start(http://www.google.com/);
 

解决方案

在WinRT中,你可以使用 Windows.System.Launcher.LaunchUriAsync 启动与相关联的默认应用程序指定的URI。对于网络链接,默认的浏览器会被使用。

win7激活工具,win10激活工具,windows系统下载

:Launcher.LaunchUriAsync(URI)| launchUriAsync(URI)方法

The question says it all. Basically, I just want to know the alternative for this in WinRT:

Process.Start("http://www.google.com/");

解决方案

In WinRT, you can use Windows.System.Launcher.LaunchUriAsync to launch the default app associated with the specified URI. For a web link, the default browser would be used.

MSDN: Launcher.LaunchUriAsync(Uri) | launchUriAsync(Uri) method