Confirm that the URL was Launched successfully in C#

爷,独闯天下 提交于 2020-01-16 12:01:33

问题


I am developing a solution in Winforms and Console windows. when i call the following line, the browser opens successfully:

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

but how can i confirm that it opened successfully?

I was using this line in UWP which returns the status of the opening but it doesn't work in the background

var success = await Windows.System.Launcher.LaunchUriAsync(uri);

Is there a way to confirm that the link has launched as the one in UWP?

来源:https://stackoverflow.com/questions/59196207/confirm-that-the-url-was-launched-successfully-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!