Export (0) Print
Expand All

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)

public ConnectionPointCookie(
	Object source,
	Object sink,
	Type eventInterface
)

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.

ExceptionCondition
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.

The AxHost.ConnectionPointCookie constructor establishes a connection between the ActiveX control and the client.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft