IConnectionPointContainer.FindConnectionPoint(Guid, IConnectionPoint) 方法

定义

询问可连接对象是否具有特定 IID 的连接点,如果有,则返回指向该连接点的 IConnectionPoint 接口指针。Queries the connectable object about whether it has a connection point for a particular IID, and, if so, returns the IConnectionPoint interface pointer to that connection point.

public:
 void FindConnectionPoint(Guid % riid, [Runtime::InteropServices::Out] Microsoft::VisualBasic::Compatibility::VB6::IConnectionPoint ^ % cp);
public void FindConnectionPoint (ref Guid riid, out Microsoft.VisualBasic.Compatibility.VB6.IConnectionPoint cp);
abstract member FindConnectionPoint : Guid * IConnectionPoint -> unit
Public Sub FindConnectionPoint (ByRef riid As Guid, ByRef cp As IConnectionPoint)

参数

riid
Guid

对输出接口 IID 的引用,此输出接口 IID 的连接点正在被请求。A reference to the outgoing interface IID whose connection point is being requested.

cp
IConnectionPoint

当方法返回时,此参数将包含管理输出接口 riid 的连接点。When the method returns, this parameter contains the connection point that manages the outgoing interface riid. 此参数未经初始化即被传递。This parameter is passed uninitialized.

注解

对于新开发,请参阅 IConnectionPointContainerFor new development, see IConnectionPointContainer.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于