IConnectionPointContainer 接口


提供 IConnectionPointContainer 接口的托管定义。Provides the managed definition of the IConnectionPointContainer interface.

public interface class IConnectionPointContainer
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 时,公共语言运行时将引发异常。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.



创建在可连接对象中支持的所有连接点的枚举数,每个 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.