IConnectionPoint 介面

定義

提供 IConnectionPoint 介面的 Managed 定義。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
屬性

備註

如需詳細資訊,請參閱 MSDN library 中的 IConnectionPoint 的現有檔。For more information, see the existing documentation for IConnectionPoint in the 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.

方法

Advise(Object, Int32)

在連接點和呼叫端的接收物件之間建立諮詢連接 (Advisory Connection)。Establishes an advisory connection between the connection point and the caller's sink object.

EnumConnections(IEnumConnections)

建立列舉值物件,以逐一查看存在於這個連接點的連接。Creates an enumerator object for iteration through the connections that exist to this connection point.

GetConnectionInterface(Guid)

傳回這個連接點所管理之輸出介面的 IID。Returns the IID of the outgoing interface managed by this connection point.

GetConnectionPointContainer(IConnectionPointContainer)

擷取在概念上擁有這個連接點之可連接物件的 IConnectionPointContainer 介面指標。Retrieves the IConnectionPointContainer interface pointer to the connectable object that conceptually owns this connection point.

Unadvise(Int32)

結束先前透過 Advise(Object, Int32) 方法所建立的諮詢連接。Terminates an advisory connection previously established through the Advise(Object, Int32) method.

適用於