Freigeben über


ICorPublishProcess::EnumAppDomains Method

Gets an enumerator for the application domains in the process that is referenced by this ICorPublishProcess Interface.

HRESULT EnumAppDomains (
    [out] ICorPublishAppDomainEnum   **ppEnum
);

Parameters

Parameter Description

ppEnum

[out] A pointer to the address of an ICorPublishAppDomainEnum Interface instance that allows iteration through the collection of application domains in this process.

Remarks

The list of application domains is based on a snapshot of the application domains that exist when the EnumAppDomains method is called. This method may be called more than once to create a new up-to-date list. Existing lists will not be affected by subsequent calls of this method.

If the process has been terminated, EnumAppDomains will fail with an HRESULT value of CORDBG_E_PROCESS_TERMINATED.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorPub.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorPublishProcess Interface