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