語言

IConnectionPoint 介面

定義

提供介面的管理定義 IConnectionPoint 。

public interface class IConnectionPoint
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IConnectionPoint
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("B196B286-BAB4-101A-B69C-00AA00341D07")]
public interface IConnectionPoint
public interface IConnectionPoint
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IConnectionPoint = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("B196B286-BAB4-101A-B69C-00AA00341D07")>]
type IConnectionPoint = interface
type IConnectionPoint = interface
Public Interface IConnectionPoint
屬性

備註

欲了解更多資訊,請參閱 MSDN 函式庫中的現有文件 IConnectionPoint 。

當原生程式碼中的 COM 方法回傳 HRESULTS 時,公共語言執行時會拋出例外。 欲了解更多資訊,請參閱 「如何映射 HRESULTS 與例外」。

方法

名稱 Description
Advise(Object, Int32)

建立連接點與呼叫者匯入物件之間的諮詢連線。

EnumConnections(IEnumConnections)

建立一個列舉物件,用於透過該連接點的連接進行迭代。

GetConnectionInterface(Guid)

回傳由此連接點管理的外出介面的 IID。

GetConnectionPointContainer(IConnectionPointContainer)

取得 IConnectionPointContainer 介面指標指向概念上擁有此連接點的可連接物件。

Unadvise(Int32)

終止先前透過該 Advise(Object, Int32) 方法建立的諮詢連線。

適用於