IConnectionPointContainer 介面

定義

提供 IConnectionPointContainer 介面的 Managed 定義。

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

Common Language Runtime 會在機器碼中的 COM 方法傳回 HRESULT 時擲回例外狀況。 如需詳細資訊,請參閱 How to: Map HRESULTs and Exceptions

方法

EnumConnectionPoints(IEnumConnectionPoints)

建立可連接物件 (Connectable Object) 中支援的所有連接點的列舉值,每個 IID 一個連接點。

FindConnectionPoint(Guid, IConnectionPoint)

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

適用於