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

定義

決定目前 Moniker 所識別的物件,目前是否已載入並在執行中。

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

如果目前的 Moniker 是複合的一部分,則為目前 Moniker 左邊的 Moniker 參考。

pmkNewlyRunning
IMoniker

最近加入至執行物件表格 (ROT) 的 Moniker 的參考。

傳回

如果 Moniker 正在執行則為 S_OKHRESULT 值,如果 Moniker 未在執行則為 S_FALSEHRESULT 值;否則為 E_UNEXPECTEDHRESULT 值。

備註

如需詳細資訊,請參閱 IMoniker::IsRunning 方法

適用於