語言

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 控制項與用戶端之間建立連線。

適用於