Share via


IConnectionPoint 介面

定義

警告

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

提供 OLE DB IConnectionPoint 介面的實作,以供從 Visual Basic 6.0 升級的應用程式使用。

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
[System.Runtime.InteropServices.Guid("B196B286-BAB4-101A-B69C-00AA00341D07")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public interface IConnectionPoint
[<System.Runtime.InteropServices.Guid("B196B286-BAB4-101A-B69C-00AA00341D07")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IConnectionPoint = interface
[<System.Runtime.InteropServices.Guid("B196B286-BAB4-101A-B69C-00AA00341D07")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type IConnectionPoint = interface
Public Interface IConnectionPoint
屬性

備註

如需新的開發,請參閱 IConnectionPoint

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

方法

Advise(IntPtr, Int32)
已淘汰.

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

EnumConnections(IEnumConnections)
已淘汰.

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

GetConnectionInterface(Guid)
已淘汰.

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

GetConnectionPointContainer(IConnectionPointContainer)
已淘汰.

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

Unadvise(Int32)
已淘汰.

關閉先前透過 Advise(IntPtr, Int32) 方法所建立的諮詢連接。

適用於