9 references to ConnectionPointCookie
System.Windows.Forms (2)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1165_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)
25var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType); 39Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 40Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, new object(), typeof(int))); 48Assert.Throws<NullReferenceException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 60Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, eventInterface)); 76Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, sink, eventInterface)); 86var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType);