語言

IConnectionPointContainer 介面

定義

提供介面的管理定義 IConnectionPointContainer 。

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

備註

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

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

方法

名稱 Description
EnumConnectionPoints(IEnumConnectionPoints)

建立一個列舉器,列出可連接物件中所有支援的連接點,每個 IID 一個連接點。

FindConnectionPoint(Guid, IConnectionPoint)

詢問可連接物件是否有特定 IID 的連接點,若有,則回傳 IConnectionPoint 該連接點的介面指標。

適用於