AxHost.ConnectionPointCookie Constructor
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the AxHost.ConnectionPointCookie class.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- source
- Type: System.Object
A connectable object that contains connection points.
- sink
- Type: System.Object
The client's sink which receives outgoing calls from the connection point.
- eventInterface
- Type: System.Type
The outgoing interface whose connection point object is being requested.
| Exception | Condition |
|---|---|
| ArgumentException | source does not implement eventInterface. |
| InvalidCastException | sink does not implement eventInterface. -or- source does not implement IConnectionPointContainer. |
| InvalidOperationException | The connection point has already reached its limit of connections and cannot accept any more. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.