WebBrowser.Document Property

 

Gets the Document object that represents the hosted HTML page. 

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

public object Document {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Object

A Document object.

Exception Condition
ObjectDisposedException

The WebBrowser instance is no longer valid.

InvalidOperationException

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.

SecurityPermission

to call this property. Associated enumeration: UnmanagedCode

.NET Framework
Available since 3.0
Return to top
Show: