ICLRMetaHost::EnumerateInstalledRuntimes Method

.NET Framework (current version)
 

Returns an enumeration that contains a valid ICLRRuntimeInfo interface for each version of the common language runtime (CLR) that is installed on a computer.

HRESULT EnumerateInstalledRuntimes (  
    [out, retval] IEnumUnknown **ppEnumerator);  

Parameters

ppEnumerator
[out] An enumeration of ICLRRuntimeInfo interfaces corresponding to each version of the CLR that is installed on the computer.

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULTDescription
S_OKThe method completed successfully.
E_POINTERppEnumerator is null.

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

ICLRMetaHost Interface
Hosting

Show: