Bewerken

Delen via


IMoniker.BindToObject(IBindCtx, IMoniker, Guid, Object) Method

Definition

Uses the moniker to bind to the object that it identifies.

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

Parameters

pbc
IBindCtx

A reference to the IBindCtx interface on the bind context object used in this binding operation.

pmkToLeft
IMoniker

A reference to the moniker to the left of the current moniker, if the moniker is part of a composite moniker.

riidResult
Guid

The interface identifier (IID) of the interface that the client intends to use to communicate with the object that the moniker identifies.

ppvResult
Object

When this method returns, contains a reference to the interface requested by riidResult. This parameter is passed uninitialized.

Remarks

For more information, see IMoniker::BindToObject method.

Applies to