Reload opend page in Edge via C#

Occasional Visitor


we are migrating from IE to edge and one of our software was refreshing IE pages.
It was perfectly running for IE but of course not for Edge
could you provide me equivalent for edge of code here under?

Actual software is a windows services .net framework 4.5.2

Tools is Visual Studio 2019


foreach (SHDocVw.InternetExplorer ieInst in new SHDocVw.ShellWindowsClass())
if (String.IsNullOrEmpty(ieInst.LocationURL) == true) continue;
foreach (string S in res)
if (ieInst.LocationURL.ToUpper().Contains(S)) //check if url contain a specific text


Thanks for your help

0 Replies