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

定义

检索指向存储(该存储包含名字对象所标识的对象)的接口指针。Retrieves an interface pointer to the storage that contains the object identified by the moniker.

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

参数

pbc
UCOMIBindCtx UCOMIBindCtx UCOMIBindCtx UCOMIBindCtx

对在此绑定操作过程中使用的绑定上下文对象上的 IBindCtx 接口的引用。A reference to the IBindCtx interface on the bind context object used during 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.

riid
Guid Guid Guid Guid

所请求的存储接口的接口标识符 (IID)。The interface identifier (IID) of the storage interface requested.

ppvObj
Object Object Object Object

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

注解

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

适用于