10 instantiations of ConnectionPointCookie
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
58
_connectionPoint = new
ConnectionPointCookie
(nativeObject, this, typeof(IPropertyNotifySink.Interface), throwException: false);
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);
11 references to ConnectionPointCookie
System.Windows.Forms (8)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
32
private
ConnectionPointCookie
? _connectionPoint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
128
private AxHost.
ConnectionPointCookie
[]? _connectionPointCookies;
4076
_connectionPointCookies = new AxHost.
ConnectionPointCookie
[_selectedObjects.Length];
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (1)
26
private AxHost.
ConnectionPointCookie
? _cookie;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (1)
47
private AxHost.
ConnectionPointCookie
? _cookie; // To hook up events from the native HtmlElement
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (1)
27
private AxHost.
ConnectionPointCookie
? _cookie;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
31
private AxHost.
ConnectionPointCookie
? _cookie; // To hook up events from the native WebBrowser
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
33
private AxHost.
ConnectionPointCookie
? _connectionPoint;
System.Windows.Forms.Tests (3)
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (2)
23
var
cookie = new AxHost.ConnectionPointCookie(source, sink, eventType);
84
var
cookie = new AxHost.ConnectionPointCookie(source, sink, eventType);
System\Windows\Forms\AxHostTests.cs (1)
3095
AxHost.
ConnectionPointCookie
cookie = site.TestAccessor().Dynamic._connectionPoint;