Edit

Share via


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 .NET Framework version 2.0, this interface is superseded by ICLRRuntimeHost.

Methods

Method Description
CloseEnum Method Resets a ___domain enumerator back to the beginning of the ___domain list.
CreateDomain Method Creates an application ___domain. The caller receives an interface pointer of type _AppDomain to an instance of type System.AppDomain.
CreateDomainEx Method Creates an application ___domain. This method allows the caller to pass an IAppDomainSetup instance to configure additional features of the returned _AppDomain instance.
CreateDomainSetup Method Gets 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 Method Gets an interface pointer of type IIdentity, which allows the host to create security evidence to pass to CreateDomain or CreateDomainEx.
CreateLogicalThreadState Method Do not use.
CurrentDomain Method Gets an interface pointer of type _AppDomain that represents the ___domain loaded on the current thread.
DeleteLogicalThreadState Method Do not use.
EnumDomains Method Gets an enumerator for the domains in the current process.
GetConfiguration Method Gets an object that allows the host to specify the callback configuration of the CLR.
GetDefaultDomain Method Gets an interface pointer of type _AppDomain that represents the default ___domain for the current process.
LocksHeldByLogicalThread Method Do not use.
MapFile Method Maps the specified file into memory. This method is obsolete.
NextDomain Method Gets an interface pointer to the next ___domain in the enumeration.
Start Method Starts the CLR.
Stop Method Stops the execution of code in the runtime for the current process.
SwitchInLogicalThreadState Method Do not use.
SwitchOutLogicalThreadState Method Do not use.
UnloadDomain Method Unloads the specified application ___domain from the current process.

Requirements

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 1.0, 1.1

See also