WebBrowser.WebBrowserSite Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the host window of a WebBrowser control.
protected: ref class WebBrowser::WebBrowserSite : System::Windows::Forms::WebBrowserSiteBase
[System.Runtime.InteropServices.ComVisible(false)]
protected class WebBrowser.WebBrowserSite : System.Windows.Forms.WebBrowserSiteBase
protected class WebBrowser.WebBrowserSite : System.Windows.Forms.WebBrowserSiteBase
Protected Class WebBrowser.WebBrowserSite
Inherits WebBrowserSiteBase
- Inheritance
- Attributes
If you are familiar with OLE development using the unmanaged WebBrowser
ActiveX control, you can extend the functionality of the Windows Forms WebBrowser control, which is a managed wrapper for the ActiveX control. You can use this extensibility, for example, to customize the browser shortcut menu and shortcut keys or to provide a custom security configuration for hosted documents.
To use this feature, implement classes that inherit from the WebBrowser and WebBrowser.WebBrowserSite classes. The unmanaged WebBrowser
ActiveX control uses the protected WebBrowser.CreateWebBrowserSiteBase method to retrieve extensibility interfaces implemented by the WebBrowser.WebBrowserSite class. Override the CreateWebBrowserSiteBase method to return an instance of your own class that inherits from the WebBrowser.WebBrowserSite class. The WebBrowser.WebBrowserSite class provides a default implementations of the OLE IDocHostUIHandler
interface. For more information, see IDocHostUIHandler Interface. You can provide your own implementation of this interface or implement any other WebBrowser
ActiveX control interface in order to customize the behavior of the control. For more information, see WebBrowser Control.
Note
If you provide your own implementation for any IDocHostUIHandler
members, you must implement all the members of that interface.
Web |
Initializes a new instance of the WebBrowser.WebBrowserSite class. |
Dispose() |
This API supports the product infrastructure and is not intended to be used directly from your code. Releases all resources used by the WebBrowserSiteBase. (Inherited from WebBrowserSiteBase) |
Dispose(Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Releases the unmanaged resources used by the WebBrowserSiteBase and optionally releases the managed resources. (Inherited from WebBrowserSiteBase) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: