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)
23
var cookie = new AxHost.
ConnectionPointCookie
(source, sink, eventType);
37
Assert.Throws<InvalidCastException>(() => new AxHost.
ConnectionPointCookie
(source, null, null));
38
Assert.Throws<InvalidCastException>(() => new AxHost.
ConnectionPointCookie
(source, new object(), typeof(int)));
46
Assert.Throws<NullReferenceException>(() => new AxHost.
ConnectionPointCookie
(source, null, null));
58
Assert.Throws<InvalidCastException>(() => new AxHost.
ConnectionPointCookie
(source, null, eventInterface));
74
Assert.Throws<InvalidCastException>(() => new AxHost.
ConnectionPointCookie
(source, sink, eventInterface));
84
var cookie = new AxHost.
ConnectionPointCookie
(source, sink, eventType);