WebBrowser.IsOffline Property

 

Gets a value indicating whether the WebBrowser control is in offline mode.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public bool IsOffline { get; }

Property Value

Type: System.Boolean

true if the WebBrowser control is in offline mode; otherwise, false.

Exception Condition
ObjectDisposedException

This WebBrowser instance is no longer valid.

InvalidOperationException

A reference to an implementation of the IWebBrowser2 interface could not be retrieved from the underlying ActiveX WebBrowser control.

In offline mode, the WebBrowser control is forced to load Web pages from the local cache rather than downloading them.

SecurityPermission

for immediate callers to use this control. Demand value: LinkDemand; NIB: Named Permission Sets: FullTrust.

.NET Framework
Available since 2.0
Return to top
Show: