The ClearHistory method clears the navigation
history for the current session.
Parameters
None.
Return Value
If the method succeeds, the return value is non-zero. If the method
fails, the return value is zero. To get extended error information, call
GetLastError.
Remarks
This method clears both the profile's stored browsing history and
the navigation history for the current WebView instance. Internally,
it uses the WebView2 profile APIs to remove stored history and related
download entries, and then resets the back/forward navigation stack.
The effect is similar to selecting clearing the browser history in a
browser, where visited pages are removed from the user's history, and
the in-memory list of sites you can go back or forward to is
discarded.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib
See Also
|