Open an URL in the Default Web Browser in WinRT

后端 未结 2 669
一向
一向 2020-12-17 15:05

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

Process.Start(\"http://www.google.com/\");
2条回答
  •  醉话见心
    2020-12-17 15:16

    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

提交回复
热议问题