AxHost.ConnectionPointCookie(Object, Object, Type) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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。
连接点已达到其连接限制,无法再接收任何连接。
注解
构造 AxHost.ConnectionPointCookie 函数在 ActiveX 控件和客户端之间建立连接。