or
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")] |
[System.Runtime.InteropServices.ComVisibleAttribute(true)] |
public partial class DocumentClientInfo : DocumentPane |
{ |
public DocumentClientInfo() |
: base() |
{ |
InitializeComponent(); |
webBrowser1.ObjectForScripting = this; |
webBrowser1.DocumentText = "<html><body><input id=\"chk1\" type=\"checkbox\" onclick=\"window.external.Test();\" /></body></html>"; |
} |
public void Test() |
{ |
MessageBox.Show("Ok"); |
} |
} |
A QueryInterface call was made requesting the class interface of COMHaw can resolve this?
visible managed class 'DocumentClientInfo'. However since this class derives from
non COM visible class 'Telerik.WinControls.Docking.DocumentPane', the QueryInterface call will fail. This
is done to prevent the non COM visible base class from being
constrained by the COM versioning rules.