Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft