ICLRRuntimeInfo Interface

.NET Framework (current version)
 

Provides methods that return information about a specific common language runtime (CLR), including version, directory, and load status. This interface also provides runtime-specific functionality without initializing the runtime. It includes the runtime-relative LoadLibrary method, the runtime module-specific GetProcAddress method, and runtime-provided interfaces through the GetInterface method.

MethodDescription
BindAsLegacyV2Runtime MethodBinds this runtime for all legacy CLR version 2 activation policy decisions.
GetDefaultStartupFlags MethodGets the CLR startup flags and host configuration file.
GetInterface MethodLoads the CLR into the current process and returns runtime interface pointers, such as ICLRRuntimeHost, ICLRStrongName and IMetaDataDispenser. This method supersedes all the CorBindTo* functions.
GetProcAddress MethodGets the address of a specified function that was exported from the CLR associated with this interface. This method supersedes the GetRealProcAddress method.
GetRuntimeDirectory MethodGets the installation directory of the CLR associated with this interface. This method supersedes the GetCORSystemDirectory method.
GetVersionString MethodGets common language runtime (CLR) version information associated with a given ICLRRuntimeInfo interface. This method supersedes the GetRequestedRuntimeInfo and GetRequestedRuntimeVersion methods.
IsLoadable MethodIndicates whether the runtime associated with this interface can be loaded into the current process, taking into account other runtimes that might already be loaded into the process.
IsLoaded MethodIndicates whether the CLR associated with the ICLRRuntimeInfo interface is loaded into a process.
IsStarted MethodIndicates whether the CLR that is associated with the ICLRRuntimeInfo interface has been started.
LoadErrorString MethodTranslates an HRESULT value into an appropriate error message for the specified culture. This method supersedes the LoadStringRC and LoadStringRCEx methods.
LoadLibrary MethodLoads a library from the framework directory of the CLR represented by an ICLRRuntimeInfo interface. This method supersedes the LoadLibraryShim method.
SetDefaultStartupFlags MethodSets the CLR startup flags and host configuration file.

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

Hosting Interfaces
Hosting

Show: