C
Clariton
Hi
I am trying to do my own implementation of IInternetSecurityManager
using managed WebBrowser control. C# Beta documentation suggests that
"To use this feature, implement classes that inherit from the
WebBrowser and WebBrowser.WebBrowserSite classes. The WebBrowser
ActiveX control uses the protected CreateAxSite method to retrieve
extensibility interfaces implemented by the WebBrowser.WebBrowserSite
class. Override the CreateAxSite method to return an instance of your
own class that inherits from the WebBrowser.WebBrowserSite class. The
WebBrowser.WebBrowserSite class provides default implementations of
the OLE interfaces IDocHostUIHandler and InternetSecurityManager. You
can provide your own implementation of these interfaces or implement
any other WebBrowser ActiveX control interface in order to customize
the behavior of the control."
I can inherit a class from WebBrowserClass and override CreateAxSite
but I am not able to inherit a class from WebBrowser.WebBrowserSite
since this a protected class with in WebBrowser class. I am not sure
how to implement what is suggested in documentation without doing this
step. I would like to be able to do my own implementation if
IInternetSecurityManager. Please let me know if you have any sample
app/Code doing this in C# .
Thanks a lot.
Ivneet
I am trying to do my own implementation of IInternetSecurityManager
using managed WebBrowser control. C# Beta documentation suggests that
"To use this feature, implement classes that inherit from the
WebBrowser and WebBrowser.WebBrowserSite classes. The WebBrowser
ActiveX control uses the protected CreateAxSite method to retrieve
extensibility interfaces implemented by the WebBrowser.WebBrowserSite
class. Override the CreateAxSite method to return an instance of your
own class that inherits from the WebBrowser.WebBrowserSite class. The
WebBrowser.WebBrowserSite class provides default implementations of
the OLE interfaces IDocHostUIHandler and InternetSecurityManager. You
can provide your own implementation of these interfaces or implement
any other WebBrowser ActiveX control interface in order to customize
the behavior of the control."
I can inherit a class from WebBrowserClass and override CreateAxSite
but I am not able to inherit a class from WebBrowser.WebBrowserSite
since this a protected class with in WebBrowser class. I am not sure
how to implement what is suggested in documentation without doing this
step. I would like to be able to do my own implementation if
IInternetSecurityManager. Please let me know if you have any sample
app/Code doing this in C# .
Thanks a lot.
Ivneet