9 references to ConnectionPointCookie
System.Windows.Forms (2)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1163_cookie = new AxHost.ConnectionPointCookie(ax, _webBrowserEvent, typeof(SHDocVw.DWebBrowserEvents2));
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
383_connectionPoint = new AxHost.ConnectionPointCookie(nativeObject, this, typeof(IPropertyNotifySink.Interface));
System.Windows.Forms.Tests (7)
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (7)
23var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType); 37Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 38Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, new object(), typeof(int))); 46Assert.Throws<NullReferenceException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 58Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, eventInterface)); 74Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, sink, eventInterface)); 84var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType);