Deleting IE Cache and Cookies using C# Code in WPF

前端 未结 2 853
半阙折子戏
半阙折子戏 2021-01-13 05:18

I am using a WebBrowser control in my WPF application and I am looking to clear the IE cookie cache from code.

I have attempted to use the following code

<         


        
2条回答
  •  攒了一身酷
    2021-01-13 05:58

    The Microsoft KB Article will help you better and clear the entire Cache.

    Link To Refer

    However, You can try the following solution too.

    string[] InterNetCache = System.IO.Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));
    

提交回复
热议问题