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_OK
HRESULT如果名字对象正在运行,则为值;S_FALSEHRESULT如果名字对象未运行,则为E_UNEXPECTEDHRESULT值;或值。
注解
有关详细信息,请参阅 IMoniker::IsRunning 方法。