简体   繁体   中英

Does the WebBrowser control in .NET store the previous navigated page?

Does the WebBrowser control in the .NET Framework store the previous navigated page in memory? If it stores the page, I want to delete these pages from memory. How can I do this in C#?

You can use the Travel Log object . To get access to it, you need to get the native IWebBrowser2 interface of the browser, QI for IServiceProvider, QueryService for SID_STravelLogCursor for ITravelLogStg, enumerate the entries to find the one you want to delete and call ITravelLogStg.RemoveEntry.

webBrowser1.GoBack();

webBrowser1.Refresh();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM