Прочитај на енглеском Уреди

Делите путем


WebBrowser.Refresh Method

Definition

Reloads the current page.

Overloads

Refresh()

Reloads the current page.

Refresh(Boolean)

Reloads the current page with optional cache validation.

Refresh()

Reloads the current page.

C#
[System.Security.SecurityCritical]
public void Refresh();
C#
public void Refresh();
Attributes

Exceptions

The WebBrowser instance is no longer valid.

A reference to the underlying native WebBrowser could not be retrieved.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Refresh(Boolean)

Reloads the current page with optional cache validation.

C#
[System.Security.SecurityCritical]
public void Refresh(bool noCache);
C#
public void Refresh(bool noCache);

Parameters

noCache
Boolean

Specifies whether to refresh without cache validation.

Attributes

Exceptions

The WebBrowser instance is no longer valid.

A reference to the underlying native WebBrowser could not be retrieved.

Remarks

If noCache is true, the WebBrowser control refreshes without cache validation by sending a "Pragma:no-cache" header to the server.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10