ICorDebugProcess::EnumerateAppDomains 方法

枚举此进程中的所有应用程序域。

语法

HRESULT EnumerateAppDomains(  
    [out] ICorDebugAppDomainEnum **ppAppDomains);  

参数

ppAppDomains
[out] 指向 ICorDebugAppDomainEnum 的地址的指针,该对象表示此进程中应用程序域的枚举器。

备注

此方法可在 ICorDebugManagedCallback::CreateProcess 回调之前使用。

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:自 2.0 起可用