WebBrowser.Document Property


Gets the Document object that represents the hosted HTML page. 

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public ReadOnly Property Document As Object

Property Value

Type: System.Object

A Document object.

Exception Condition

The WebBrowser instance is no longer valid.


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

The Document object needs to be cast to the COM interface you are expecting.


to call this property. Associated enumeration: UnmanagedCode

.NET Framework
Available since 3.0
Return to top