WebBrowser Constructor ()
.NET Framework (current version)
Initializes a new instance of the WebBrowser class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | The WebBrowser control is hosted inside Internet Explorer. |
By default, the WebBrowser control is empty. To navigate it to an initial document, set the Url property.
SecurityPermissionSecurityPermission
for all callers in the call stack to use this constructor. Demand value: Demand; NIB: Named Permission Sets: FullTrust.
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: