IMoniker.IsRunning(IBindCtx, IMoniker, IMoniker) 方法

定义

确定当前名字对象标识的对象当前是否已加载并运行。

public:
 int IsRunning(System::Runtime::InteropServices::ComTypes::IBindCtx ^ pbc, System::Runtime::InteropServices::ComTypes::IMoniker ^ pmkToLeft, System::Runtime::InteropServices::ComTypes::IMoniker ^ pmkNewlyRunning);
public int IsRunning(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker pmkToLeft, System.Runtime.InteropServices.ComTypes.IMoniker pmkNewlyRunning);
public int IsRunning(System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, System.Runtime.InteropServices.ComTypes.IMoniker? pmkNewlyRunning);
abstract member IsRunning : System.Runtime.InteropServices.ComTypes.IBindCtx * System.Runtime.InteropServices.ComTypes.IMoniker * System.Runtime.InteropServices.ComTypes.IMoniker -> int
Public Function IsRunning (pbc As IBindCtx, pmkToLeft As IMoniker, pmkNewlyRunning As IMoniker) As Integer

参数

pbc
IBindCtx

对此绑定操作中使用的绑定上下文的引用。

pmkToLeft
IMoniker

如果当前名字对象是复合的一部分,则对当前名字对象左侧名字对象的引用。

pmkNewlyRunning
IMoniker

对最近添加到“正在运行的对象表”(ROT)名字对象的引用。

返回

S_OK HRESULT如果名字对象正在运行,则为值;S_FALSEHRESULT如果名字对象未运行,则为E_UNEXPECTEDHRESULT值;或值。

注解

有关详细信息,请参阅 IMoniker::IsRunning 方法

适用于