Muokkaa

Jaa


ICLRTaskManager Interface

Provides methods that allow the host to request explicitly that the common language runtime (CLR) create a new task, get the currently executing task, and set the geographic language and culture for the task.

Methods

Method Description
CreateTask Method Requests explicitly that the CLR create a new ICLRTask instance.
GetCurrentTask Method Gets the ICLRTask instance that represents the task that is currently executing.
GetCurrentTaskType Method Gets the type of the task that is currently executing.
SetLocale Method Notifies the CLR that the host has modified the locale identifier on the currently executing task.
SetUILocale Method Notifies the common language runtime that the host has modified the user interface locale identifier on the currently executing task.

Remarks

Each task that is running in a hosted environment has representations both on the host side (an instance of IHostTask) and on the CLR side (an instance of ICLRTask). Either the host or the CLR can initiate the creation of a task, but the host-side representation must be associated with a corresponding CLR-side representation to ensure successful communication between the host and the CLR regarding the task. The two objects must be created and instantiated before managed code can execute on an operating system thread.

Requirements

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

See also