This section describes interfaces that unmanaged hosts can use to integrate the common language runtime (CLR) in the .NET Framework 4, .NET Framework 4.5, and later versions into their applications. These interfaces provide methods for a host to configure and load the runtime into a process.
Starting with the .NET Framework 4, all hosting interfaces have the following characteristics:
They use lifetime management (AddRef and Release), encapsulation (implicit context) and QueryInterface from COM.
There do not use COM types such as BSTR, SAFEARRAY, or VARIANT.
Provides the SetGCStartupLimitsEx method, which enables a host to set the size of the garbage collection segment and the maximum size of the garbage collection system's generation 0 to values greater than DWORD.
Provides methods that return a specific version of the CLR, list all installed CLRs, list all in-process runtimes, return the activation interface, and discover the CLR version used to compile an assembly.