问题
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