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

從連接點接收輸出呼叫的用戶端接收 (sink)。

eventInterface
Type

所要求的連接點物件的輸出介面。

例外狀況

source 未實作 eventInterface

sink 未實作 eventInterface

-或- source 未實作 IConnectionPointContainer

連接點已達到連線限制,無法接受更多連線。

備註

AxHost.ConnectionPointCookie 構函式會建立ActiveX控制項與用戶端之間的連線。

適用於