Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides methods that allow the common language runtime (CLR) to communicate with the host to manage tasks.
Methods
| Method | Description | 
|---|---|
| Alert Method | Requests that the host wake the task represented by the current IHostTaskinstance, so the task can be aborted. | 
| GetPriority Method | Gets the thread priority level of the task represented by the current IHostTaskinstance. | 
| Join Method | Blocks the calling task until the task represented by the current IHostTaskinstance completes, the specified time interval elapses, or IHostTask::Alert is called. | 
| SetCLRTask Method | Associates an ICLRTask Interface instance with the current IHostTaskinstance. | 
| SetPriority Method | Requests that the host adjust the thread priority level for the task represented by the current IHostTaskinstance. | 
| Start Method | Requests that the host move the task represented by the current IHostTaskinstance from a suspended state to a live state, in which code can be executed. | 
Remarks
The CLR calls methods defined by IHostTask to start a task, set its thread priority level, and so on.
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
							
							
								Collaborate with us on GitHub
							
						
						
							The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.