简体   繁体   中英

Open Web link programmatically in IE - non-Metro mode

有没有办法以编程方式从我的城域网应用程序中打开IE(非地铁模式)链接?

For metro applications users are in control of the applications that launch for uri and files.

To browse to a webpage (JavaScript but the C# is similar):

var uri = new Windows.Foundation.Uri("http://www.microsoft.com");
Windows.System.Launcher.launchUriAsync(uri).then(function () { });

To launch other apps you should look at the Windows.System.Launcher class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM