Share via


ICorPublishProcess::EnumAppDomains Method

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

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

Parameters

  • ppEnum
    [out] A pointer to the address of an ICorPublishAppDomainEnum 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: See .NET Framework System Requirements.

Header: CorPub.idl, CorPub.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

ICorPublishProcess Interface