43 references to IDispatch
System.Windows.Forms (43)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (4)
35return typeof(UnsafeNativeMethods.IDispatch); 161if (Marshal.IsComObject(component) && component is UnsafeNativeMethods.IDispatch) { 162UnsafeNativeMethods.IDispatch pDisp = (UnsafeNativeMethods.IDispatch)component;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
75if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
76if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
117if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType) && sender.CanShow){ 185if (sender.CanShow && typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (10)
214if (this.canShow && (propType == typeof(Object) || (valueConverter == null && propType == typeof(UnsafeNativeMethods.IDispatch)))) { 369return typeof(UnsafeNativeMethods.IDispatch); 763if (!typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(this.PropertyType)) { 870if (component == null || !Marshal.IsComObject(component) || !(component is UnsafeNativeMethods.IDispatch)) 873UnsafeNativeMethods.IDispatch pDisp = (UnsafeNativeMethods.IDispatch)component; 1218if (owner == null || !Marshal.IsComObject(owner) || !(owner is UnsafeNativeMethods.IDispatch)) { 1231UnsafeNativeMethods.IDispatch pDisp = (UnsafeNativeMethods.IDispatch)owner; 1279g = typeof(UnsafeNativeMethods.IDispatch).GUID;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
95if (obj is UnsafeNativeMethods.IDispatch) { 96UnsafeNativeMethods.IDispatch iDispatch = (UnsafeNativeMethods.IDispatch)obj; 155public static int GetNameDispId(UnsafeNativeMethods.IDispatch obj){ 444int nameDispID = GetNameDispId((UnsafeNativeMethods.IDispatch)obj); 984return typeof(UnsafeNativeMethods.IDispatch);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (10)
139if (!(component is UnsafeNativeMethods.IDispatch)) { 143int dispid = Com2TypeInfoProcessor.GetNameDispId((UnsafeNativeMethods.IDispatch)component); 157if (!(component is UnsafeNativeMethods.IDispatch)) { 161UnsafeNativeMethods.IDispatch iDispatch = (UnsafeNativeMethods.IDispatch)component; 180if (!(component is UnsafeNativeMethods.IDispatch)) { 195if (!(component is UnsafeNativeMethods.IDispatch)) { 198UnsafeNativeMethods.IDispatch iDispatch = (UnsafeNativeMethods.IDispatch)component; 243return dispid == Com2TypeInfoProcessor.GetNameDispId((UnsafeNativeMethods.IDispatch)obj);
winforms\Managed\System\WinForms\Control.cs (3)
16823if (clientSite is UnsafeNativeMethods.IDispatch) { 16826UnsafeNativeMethods.IDispatch disp = (UnsafeNativeMethods.IDispatch)clientSite;
winforms\Managed\System\WinForms\HtmlDocument.cs (2)
554UnsafeNativeMethods.IDispatch scriptObject = this.NativeHtmlDocument2.GetScript() as UnsafeNativeMethods.IDispatch;
winforms\Managed\System\WinForms\HtmlElement.cs (2)
603UnsafeNativeMethods.IDispatch scriptObject = this.NativeHtmlElement as UnsafeNativeMethods.IDispatch;
winforms\Managed\System\WinForms\NativeMethods.cs (2)
4369else if (t == typeof(object) || t == typeof(UnsafeNativeMethods.IDispatch) || t.IsCOMObject) { 4370v.vt = (t == typeof(UnsafeNativeMethods.IDispatch) ? (short)tagVT.VT_DISPATCH : (short)tagVT.VT_UNKNOWN);