AxHost::ConnectionPointCookie Constructor (Object^, Object^, Type^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the AxHost::ConnectionPointCookie class.
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 | |
| InvalidOperationException | The connection point has already reached its limit of connections and cannot accept any more. |
The AxHost::ConnectionPointCookie constructor establishes a connection between the ActiveX control and the client.
.NET Framework
Available since 1.1
Available since 1.1
Show: