TaskFactory Methods

The TaskFactory type exposes the following members.

  Name Description
Public method Supported by Portable Class Library ContinueWhenAll(Task[], Action<Task[]>) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll(Task[], Action<Task[]>, CancellationToken) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll(Task[], Action<Task[]>, TaskContinuationOptions) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll(Task[], Action<Task[]>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, CancellationToken) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, TaskContinuationOptions) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, CancellationToken) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, TaskContinuationOptions) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[], TResult>) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[], TResult>, CancellationToken) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[], TResult>, TaskContinuationOptions) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[], TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation task that starts when a set of specified tasks has completed.
Public method Supported by Portable Class Library ContinueWhenAny(Task[], Action<Task>) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny(Task[], Action<Task>, CancellationToken) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny(Task[], Action<Task>, TaskContinuationOptions) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny(Task[], Action<Task>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TResult>(Task[], Func<Task, TResult>) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, CancellationToken) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, TaskContinuationOptions) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, CancellationToken) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, TaskContinuationOptions) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation Task that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>, TResult>) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>, TResult>, CancellationToken) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>, TResult>, TaskContinuationOptions) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>, TResult>, CancellationToken, TaskContinuationOptions, TaskScheduler) Creates a continuation Task<TResult> that will be started upon the completion of any Task in the provided set.
Public method Supported by Portable Class Library Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by Portable Class Library Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Portable Class Library FromAsync(IAsyncResult, Action<IAsyncResult>) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync(Func<AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, Object) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync(Func<AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, Object, TaskCreationOptions) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions, TaskScheduler) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>) Creates a Task<TResult> that executes an end method function when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync<TResult>(Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, Object) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions) Creates a Task<TResult> that executes an end method function when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync<TResult>(Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, Object, TaskCreationOptions) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, Object) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions, TaskScheduler) Creates a Task<TResult> that executes an end method function when a specified IAsyncResult completes.
Public method Supported by Portable Class Library FromAsync<TArg1>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, Object, TaskCreationOptions) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, Object) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, Object, TaskCreationOptions) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, Object) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, Object, TaskCreationOptions) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, Object) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, Object, TaskCreationOptions) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, TArg3, Object) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, TArg3, Object, TaskCreationOptions) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, Object) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, Object, TaskCreationOptions) Creates a Task<TResult> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method Supported by Portable Class Library GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Portable Class Library MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Portable Class Library StartNew(Action) Creates and starts a task.
Public method Supported by Portable Class Library StartNew(Action, CancellationToken) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action, TaskCreationOptions) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action<Object>, Object) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action<Object>, Object, CancellationToken) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action<Object>, Object, TaskCreationOptions) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action, CancellationToken, TaskCreationOptions, TaskScheduler) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew(Action<Object>, Object, CancellationToken, TaskCreationOptions, TaskScheduler) Creates and starts a Task.
Public method Supported by Portable Class Library StartNew<TResult>(Func<TResult>) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<TResult>, CancellationToken) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<TResult>, TaskCreationOptions) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<Object, TResult>, Object) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<Object, TResult>, Object, CancellationToken) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<Object, TResult>, Object, TaskCreationOptions) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<TResult>, CancellationToken, TaskCreationOptions, TaskScheduler) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library StartNew<TResult>(Func<Object, TResult>, Object, CancellationToken, TaskCreationOptions, TaskScheduler) Creates and starts a Task<TResult>.
Public method Supported by Portable Class Library ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft