SHDocVw.TWebBrowser.Refresh2

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Refresh2; overload;
procedure Refresh2(const Level: OleVariant); overload;

C++

void __fastcall Refresh2()/* overload */;
void __fastcall Refresh2(const System::OleVariant &Level)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
SHDocVw.pas
SHDocVw.hpp
SHDocVw TWebBrowser

Description

Reloads the current document if necessary.

Call Refresh2 to reload the current document. Unlike the Refresh method, Refresh2 lets you specify what level of refresh to perform.

Level indicates what type of information is refreshed. The following table lists the possible values:



Constant Value Meaning

REFRESH_NORMAL

0

Perform a lightweight refresh that does not include the pragma:nocache header. The pragma:nocache header tells the server not to return a cached copy. This can cause problems with some servers.

REFRESH_IFEXPIRED

1

Only refresh if the page has expired. Do not include the pragma:nocache header.

REFRESH_CONTINUE

2

For internal use only.

REFRESH_COMPLETELY

3

Perform a full refresh, including the pragma:nocache header. Using this option is the same as calling the Refresh method.



When Level is omitted, a value of REFRESH_COMPLETELY is assumed.

See Also