IHostTask Interface
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 IHostTask instance, so the task can be aborted. |
GetPriority Method | Gets the thread priority level of the task represented by the current IHostTask instance. |
Join Method | Blocks the calling task until the task represented by the current IHostTask instance completes, the specified time interval elapses, or IHostTask::Alert is called. |
SetCLRTask Method | Associates an ICLRTask Interface instance with the current IHostTask instance. |
SetPriority Method | Requests that the host adjust the thread priority level for the task represented by the current IHostTask instance. |
Start Method | Requests that the host move the task represented by the current IHostTask instance 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
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho