AxHost.ConnectionPointCookie Constructor
Collapse the table of content
Expand the table of content

AxHost.ConnectionPointCookie Constructor (Object, Object, Type)

 

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.

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.

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.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft