Reload opend page in Edge via C#

%3CLINGO-SUB%20id%3D%22lingo-sub-2659046%22%20slang%3D%22en-US%22%3EReload%20opend%20page%20in%20Edge%20via%20C%23%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2659046%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Ewe%20are%20migrating%20from%20IE%20to%20edge%20and%20one%20of%20our%20software%20was%20refreshing%20IE%20pages.%3CBR%20%2F%3EIt%20was%20perfectly%20running%20for%20IE%20but%20of%20course%20not%20for%20Edge%3CBR%20%2F%3Ecould%20you%20provide%20me%20equivalent%20for%20edge%20of%20code%20here%20under%3F%3C%2FP%3E%3CP%3EActual%20software%20is%20a%20windows%20services%20.net%20framework%204.5.2%3C%2FP%3E%3CP%3ETools%20is%20Visual%20Studio%202019%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eforeach%20(SHDocVw.InternetExplorer%20ieInst%20in%20new%20SHDocVw.ShellWindowsClass())%3CBR%20%2F%3E%7B%3CBR%20%2F%3Eif%20(String.IsNullOrEmpty(ieInst.LocationURL)%20%3D%3D%20true)%20continue%3B%3CBR%20%2F%3Eforeach%20(string%20S%20in%20res)%3CBR%20%2F%3E%7B%3CBR%20%2F%3Eif%20(ieInst.LocationURL.ToUpper().Contains(S))%20%2F%2Fcheck%20if%20url%20contain%20a%20specific%20text%3CBR%20%2F%3E%7B%3CBR%20%2F%3EieInst.Refresh()%3B%3CBR%20%2F%3Ebreak%3B%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

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
{
ieInst.Refresh();
break;
}
}
}

 

Thanks for your help

0 Replies