IConnectionPoint 介面

定義

提供 IConnectionPoint 介面的 Managed 定義。

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

備註

如需詳細資訊,請參閱 MSDN 文件庫中的現有檔 IConnectionPoint

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

方法

Advise(Object, Int32)

在連接點和呼叫端的接收物件之間建立諮詢連接 (Advisory Connection)。

EnumConnections(IEnumConnections)

建立列舉值物件,以逐一查看存在於這個連接點的連接。

GetConnectionInterface(Guid)

傳回這個連接點所管理之輸出介面的 IID。

GetConnectionPointContainer(IConnectionPointContainer)

擷取在概念上擁有這個連接點之可連接物件的 IConnectionPointContainer 介面指標。

Unadvise(Int32)

結束先前透過 Advise(Object, Int32) 方法所建立的諮詢連接。

適用於