WebBrowser::DocumentType Property
.NET Framework (current version)
Gets the type of the document currently displayed in the WebBrowser control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| 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. |
The value of this property corresponds to the Multipurpose Internet Mail Extensions (MIME) type of the document.
SecurityPermission
for immediate callers to use this control. Demand value: LinkDemand; NIB: Named Permission Sets: FullTrust.
.NET Framework
Available since 2.0
Available since 2.0
Show: