Redaguoti

Bendrinti naudojant


ICLRRuntimeInfo Interface

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.

Methods

Method Description
BindAsLegacyV2Runtime Method Binds this runtime for all legacy CLR version 2 activation policy decisions.
GetDefaultStartupFlags Method Gets the CLR startup flags and host configuration file.
GetInterface Method Loads 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 Method Gets the address of a specified function that was exported from the CLR associated with this interface. This method supersedes the GetRealProcAddress method.
GetRuntimeDirectory Method Gets the installation directory of the CLR associated with this interface. This method supersedes the GetCORSystemDirectory method.
GetVersionString Method Gets common language runtime (CLR) version information associated with a given ICLRRuntimeInfo interface. This method supersedes the GetRequestedRuntimeInfo and GetRequestedRuntimeVersion methods.
IsLoadable Method Indicates 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 Method Indicates whether the CLR associated with the ICLRRuntimeInfo interface is loaded into a process.
IsStarted Method Indicates whether the CLR that is associated with the ICLRRuntimeInfo interface has been started.
LoadErrorString Method Translates an HRESULT value into an appropriate error message for the specified culture. This method supersedes the LoadStringRC and LoadStringRCEx methods.
LoadLibrary Method Loads a library from the framework directory of the CLR represented by an ICLRRuntimeInfo interface. This method supersedes the LoadLibraryShim method.
SetDefaultStartupFlags Method Sets the CLR startup flags and host configuration file.

Requirements

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

See also