UCOMIMoniker.BindToObject(UCOMIBindCtx, UCOMIMoniker, Guid, Object) UCOMIMoniker.BindToObject(UCOMIBindCtx, UCOMIMoniker, Guid, Object) UCOMIMoniker.BindToObject(UCOMIBindCtx, UCOMIMoniker, Guid, Object) UCOMIMoniker.BindToObject(UCOMIBindCtx, UCOMIMoniker, Guid, Object) Method

定义

使用名字对象绑定到它所标识的对象。Uses the moniker to bind to the object it identifies.

public:
 void BindToObject(System::Runtime::InteropServices::UCOMIBindCtx ^ pbc, System::Runtime::InteropServices::UCOMIMoniker ^ pmkToLeft, Guid % riidResult, [Runtime::InteropServices::Out] System::Object ^ % ppvResult);
public void BindToObject (System.Runtime.InteropServices.UCOMIBindCtx pbc, System.Runtime.InteropServices.UCOMIMoniker pmkToLeft, ref Guid riidResult, out object ppvResult);
abstract member BindToObject : System.Runtime.InteropServices.UCOMIBindCtx * System.Runtime.InteropServices.UCOMIMoniker * Guid * obj -> unit
Public Sub BindToObject (pbc As UCOMIBindCtx, pmkToLeft As UCOMIMoniker, ByRef riidResult As Guid, ByRef ppvResult As Object)

参数

pbc
UCOMIBindCtx UCOMIBindCtx UCOMIBindCtx UCOMIBindCtx

对在此绑定操作中使用的绑定上下文对象上的 IBindCtx 接口的引用。A reference to the IBindCtx interface on the bind context object used in this binding operation.

pmkToLeft
UCOMIMoniker UCOMIMoniker UCOMIMoniker UCOMIMoniker

如果名字对象是复合名字对象的一部分,则为对该名字对象左边的名字对象的引用。A reference to the moniker to the left of this moniker, if the moniker is part of a composite moniker.

riidResult
Guid Guid Guid Guid

接口的接口标识符 (IID),客户端打算使用该接口与名字对象标识的对象进行通信。The interface identifier (IID) of the interface the client intends to use to communicate with the object that the moniker identifies.

ppvResult
Object Object Object Object

成功返回时,对 riidResult 所请求的接口的引用。On successful return, reference to the interface requested by riidResult.

注解

有关IMoniker::BindToObject的详细信息,请参阅 MSDN library。For more information about IMoniker::BindToObject, see the MSDN Library.

适用于