Uredi

Deli z drugimi prek


ICorPublishProcess::EnumAppDomains Method

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

Syntax

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 System Requirements.

Header: CorPub.idl, CorPub.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0

See also