Share via


ICLRMetaHost::EnumerateInstalledRuntimes Method

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.

Return Value

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

HRESULT

Description

S_OK

The method completed successfully.

E_POINTER

ppEnumerator is null.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Reference

ICLRMetaHost Interface

Other Resources

Hosting (Unmanaged API Reference)