RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebBrowser.Refresh2 Method ()

Reloads the current document if necessary.

Pascal
procedure Refresh2; overload;
procedure Refresh2(var Level: OleVariant); overload;
C++
__fastcall Refresh2();
__fastcall Refresh2(OleVariant Level);

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 
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.  
1  
Only refresh if the page has expired. Do not include the pragma:nocache header.  
2  
For internal use only.  
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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!