IConnectionPoint IConnectionPoint IConnectionPoint IConnectionPoint Interface

定义

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

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

注解

有关详细信息,请参阅的现有文档IConnectionPointMSDN 库中。For more information, see the existing documentation for IConnectionPoint in the 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.

方法

Advise(Object, Int32) Advise(Object, Int32) Advise(Object, Int32) Advise(Object, Int32)

在连接点和调用方的接收器对象之间建立一个通知连接。Establishes an advisory connection between the connection point and the caller's sink object.

EnumConnections(IEnumConnections) EnumConnections(IEnumConnections) EnumConnections(IEnumConnections) EnumConnections(IEnumConnections)

创建枚举数对象,以便循环访问到此连接点的现有连接。Creates an enumerator object for iteration through the connections that exist to this connection point.

GetConnectionInterface(Guid) GetConnectionInterface(Guid) GetConnectionInterface(Guid) GetConnectionInterface(Guid)

返回由此连接点管理的输出接口的 IID。Returns the IID of the outgoing interface managed by this connection point.

GetConnectionPointContainer(IConnectionPointContainer) GetConnectionPointContainer(IConnectionPointContainer) GetConnectionPointContainer(IConnectionPointContainer) GetConnectionPointContainer(IConnectionPointContainer)

检索指向在概念上拥有此连接点的可连接对象的 IConnectionPointContainer 接口指针。Retrieves the IConnectionPointContainer interface pointer to the connectable object that conceptually owns this connection point.

Unadvise(Int32) Unadvise(Int32) Unadvise(Int32) Unadvise(Int32)

终止先前通过 Advise(Object, Int32) 方法建立的顾问连接。Terminates an advisory connection previously established through the Advise(Object, Int32) method.

适用于