IMoniker.IsRunning(IBindCtx, IMoniker, IMoniker) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷以目前名稱識別的物件是否正在載入並執行中。
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_OKHRESULTS_FALSEHRESULT數值;或為E_UNEXPECTEDHRESULT數值。
備註
欲了解更多資訊,請參閱 IMoniker::IsRunning 方法。