ICorRuntimeHost Interface


Provides methods that enable the host to start and stop the common language runtime (CLR) explicitly, to create and configure application domains, to access the default domain, and to enumerate all domains running in the process.

In the .NET Framework version 2.0, this interface is superceded by ICLRRuntimeHost.

CloseEnum MethodResets a domain enumerator back to the beginning of the domain list.
CreateDomain MethodCreates an application domain. The caller receives an interface pointer of type _AppDomain to an instance of type System.AppDomain.
CreateDomainEx MethodCreates an application domain. This method allows the caller to pass an IAppDomainSetup instance to configure additional features of the returned _AppDomain instance.
CreateDomainSetup MethodGets an interface pointer of type IAppDomainSetup to an AppDomainSetup instance. IAppDomainSetup provides methods to configure aspects of an application domain before it is created.
CreateEvidence MethodGets an interface pointer of type IIdentity, which allows the host to create security evidence to pass to CreateDomain or CreateDomainEx.
CreateLogicalThreadState MethodDo not use.
CurrentDomain MethodGets an interface pointer of type _AppDomain that represents the domain loaded on the current thread.
DeleteLogicalThreadState MethodDo not use.
EnumDomains MethodGets an enumerator for the domains in the current process.
GetConfiguration MethodGets an object that allows the host to specify the callback configuration of the CLR.
GetDefaultDomain MethodGets an interface pointer of type _AppDomain that represents the default domain for the current process.
LocksHeldByLogicalThread MethodDo not use.
MapFile MethodMaps the specified file into memory. This method is obsolete.
NextDomain MethodGets an interface pointer to the next domain in the enumeration.
Start MethodStarts the CLR.
Stop MethodStops the execution of code in the runtime for the current process.
SwitchInLogicalThreadState MethodDo not use.
SwitchOutLogicalThreadState MethodDo not use.
UnloadDomain MethodUnloads the specified application domain from the current process.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 1.0, 1.1

ICLRRuntimeHost Interface
Runtime Hosts
Hosting Interfaces
CorRuntimeHost Coclass