IConnectionPointContainer 介面

定義

提供 IConnectionPointContainer 介面的 Managed 定義。Provides the managed definition of the IConnectionPointContainer interface.

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

備註

如需詳細資訊,請參閱 MSDN library 中的 IConnectionPointContainer 的現有檔。For more information, see the existing documentation for IConnectionPointContainer in MSDN library.

當原生程式碼中的 COM 方法傳回 HRESULT 時,common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

方法

EnumConnectionPoints(IEnumConnectionPoints)

建立可連接物件 (Connectable Object) 中支援的所有連接點的列舉值,每個 IID 一個連接點。Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.

FindConnectionPoint(Guid, IConnectionPoint)

詢問可連接物件其是否具有特定 IID 的連接點,如果有,傳回該連接點的 IConnectionPoint 介面指標。Asks the connectable object if it has a connection point for a particular IID, and if so, returns the IConnectionPoint interface pointer to that connection point.

適用於