Compartir a través de


IWebBrowser2::Refresh Method

Reloads the file that is currently displayed in the object.

Syntax

HRESULT Refresh(VOID);

Return Value

Returns S_OK if successful, or E_FAIL otherwise.

Remarks

This method is the same as clicking the Refresh button or pressing F5 in Windows Internet Explorer.

To save time and network bandwidth, the WebBrowser control and InternetExplorer application store pages from recently visited sites in cached memory on the user's hard disk. When you revisit a Web site, the page is reloaded from the local disk instead of being downloaded again from the server. To ensure that you are viewing the most current version of the page, you can force a fresh download by using the IWebBrowser2::Refresh method. This method adds the "Pragma: No-cache" HTTP header to the request.

See Also

IWebBrowser2::Refresh2