语言

AxHost.ConnectionPointCookie(Object, Object, Type) 构造函数

定义

初始化 AxHost.ConnectionPointCookie 类的新实例。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 ConnectionPointCookie(System::Object ^ source, System::Object ^ sink, Type ^ eventInterface);
public ConnectionPointCookie(object source, object sink, Type eventInterface);
new System.Windows.Forms.AxHost.ConnectionPointCookie : obj * obj * Type -> System.Windows.Forms.AxHost.ConnectionPointCookie
Public Sub New (source As Object, sink As Object, eventInterface As Type)

参数

source
Object

包含连接点的可连接对象。

sink
Object

从连接点接收传出调用的客户端接收器。

eventInterface
Type

正在请求其连接点对象的传出接口。

例外

source 不实现 eventInterface。

sink 不实现 eventInterface。

-或-

source 不实现 IConnectionPointContainer。

连接点已达到其连接限制,无法再接收任何连接。

注解

构造 AxHost.ConnectionPointCookie 函数在 ActiveX 控件和客户端之间建立连接。

适用于