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