TaskToAsyncResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods for using Task to implement the Asynchronous Programming Model pattern based on "Begin" and "End" methods.
public ref class TaskToAsyncResult abstract sealed
public static class TaskToAsyncResult
type TaskToAsyncResult = class
Public Class TaskToAsyncResult
- Inheritance
-
TaskToAsyncResult
Methods
Begin(Task, AsyncCallback, Object) |
Creates a new IAsyncResult from the specified Task, optionally invoking |
End(IAsyncResult) |
Waits for the Task wrapped by the IAsyncResult returned by Begin(Task, AsyncCallback, Object) to complete. |
End<TResult>(IAsyncResult) |
Waits for the Task<TResult> wrapped by the IAsyncResult returned by Begin(Task, AsyncCallback, Object) to complete. |
Unwrap(IAsyncResult) |
Extracts the underlying Task from an IAsyncResult created by Begin(Task, AsyncCallback, Object). |
Unwrap<TResult>(IAsyncResult) |
Extracts the underlying Task<TResult> from an IAsyncResult created by Begin(Task, AsyncCallback, Object). |
Applies to
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ