AsyncInfo 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.
Important
This API is not CLS-compliant.
Provides factory methods to construct representations of managed tasks that are compatible with Windows Runtime asynchronous actions and operations.
public ref class AsyncInfo abstract sealed
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static class AsyncInfo
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
type AsyncInfo = class
Public Class AsyncInfo
- Inheritance
-
AsyncInfo
- Attributes
Methods
Run(Func<CancellationToken,Task>) |
Creates and starts a Windows Runtime asynchronous action by using a function that generates a started task. The task can support cancellation. |
Run<TProgress>(Func<CancellationToken,IProgress<TProgress>,Task>) |
Creates and starts a Windows Runtime asynchronous action that includes progress updates, by using a function that generates a started task. The task can support cancellation and progress reporting. |
Run<TResult,TProgress>(Func<CancellationToken,IProgress<TProgress>,Task<TResult>>) |
Creates and starts a Windows Runtime asynchronous operation that includes progress updates, by using a function that generates a started task that returns results. The task can support cancellation and progress reporting. |
Run<TResult>(Func<CancellationToken,Task<TResult>>) |
Creates and starts a Windows Runtime asynchronous operation by using a function that generates a started task that returns results. The task can support cancellation. |
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για