System.Threading.Tasks.TaskFactory Members

The members of System.Threading.Tasks.TaskFactory are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a System.Threading.Tasks.TaskFactory instance with the default configuration.

Initializes a System.Threading.Tasks.TaskFactory instance with the specified configuration.

Initializes a System.Threading.Tasks.TaskFactory instance with the specified configuration.

Initializes a System.Threading.Tasks.TaskFactory instance with the specified configuration.

Initializes a System.Threading.Tasks.TaskFactory instance with the specified configuration.

Public Properties

[read-only]
CancellationTokenSystem.Threading.CancellationToken.

Gets the default cancellation token for this task factory.

[read-only]
ContinuationOptionsTaskContinuationOptions.

Gets the default task continuation options for this task factory.

[read-only]
CreationOptionsTaskCreationOptions.

Gets the default task creation options for this task factory.

[read-only]
SchedulerTaskScheduler.

Gets the default task scheduler for this task factory.

Public Methods

ContinueWhenAll(Task[], Action<Task[]>) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll(Task[], Action<Task[]>, System.Threading.CancellationToken) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll(Task[], Action<Task[]>, TaskContinuationOptions) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll(Task[], Action<Task[]>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, System.Threading.CancellationToken) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, TaskContinuationOptions) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>[]>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, System.Threading.CancellationToken) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, TaskContinuationOptions) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TResult>(Task[], Func<Task[], TResult>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[],TResult>) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[],TResult>, System.Threading.CancellationToken) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[],TResult>, TaskContinuationOptions) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAll<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>[],TResult>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task<TResult>

Creates a continuation task that starts when a set of specified tasks has completed.

ContinueWhenAny(Task[], Action<Task>) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny(Task[], Action<Task>, System.Threading.CancellationToken) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny(Task[], Action<Task>, TaskContinuationOptions) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny(Task[], Action<Task>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, System.Threading.CancellationToken) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, TaskContinuationOptions) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[], Action<Task<TAntecedentResult>>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TResult>(Task[], Func<Task, TResult>) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, System.Threading.CancellationToken) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, TaskContinuationOptions) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TResult>(Task[], Func<Task, TResult>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>,TResult>) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>,TResult>, System.Threading.CancellationToken) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>,TResult>, TaskContinuationOptions) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

ContinueWhenAny<TAntecedentResult,TResult>(Task<TAntecedentResult>[], Func<Task<TAntecedentResult>,TResult>, System.Threading.CancellationToken, TaskContinuationOptions, TaskScheduler) : Task<TResult>

Creates a continuation System.Threading.Tasks.Task`1 that will be started upon the completion of any Task in the provided set.

FromAsync(IAsyncResult, Action<IAsyncResult>) : Task

Creates a System.Threading.Tasks.Task that executes an end method action when a specified IAsyncResult completes.

FromAsync(Func<AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, object) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions) : Task

Creates a System.Threading.Tasks.Task that executes an end method action when a specified IAsyncResult completes.

FromAsync(Func<AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, object, TaskCreationOptions) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions, TaskScheduler) : Task

Creates a System.Threading.Tasks.Task that executes an end method action when a specified IAsyncResult completes.

FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, object) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, object, TaskCreationOptions) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that executes an end method function when a specified IAsyncResult completes.

FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, object) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that executes an end method function when a specified IAsyncResult completes.

FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, object, TaskCreationOptions) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions, TaskScheduler) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that executes an end method function when a specified IAsyncResult completes.

FromAsync<TArg1,TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, object) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, object, TaskCreationOptions) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, object) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, object, TaskCreationOptions) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, TArg3, object) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult>, Action<IAsyncResult>, TArg1, TArg2, TArg3, object, TaskCreationOptions) : Task

Creates a System.Threading.Tasks.Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, object) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, object, TaskCreationOptions) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TArg3,TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, object) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

FromAsync<TArg1,TArg2,TArg3,TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, object, TaskCreationOptions) : Task<TResult>

Creates a System.Threading.Tasks.Task`1 that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.

StartNew(Action) : Task

Creates and starts a task.

StartNew(Action, System.Threading.CancellationToken) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action, TaskCreationOptions) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action<object>, object) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action<object>, object, System.Threading.CancellationToken) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action<object>, object, TaskCreationOptions) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action, System.Threading.CancellationToken, TaskCreationOptions, TaskScheduler) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew(Action<object>, object, System.Threading.CancellationToken, TaskCreationOptions, TaskScheduler) : Task

Creates and starts a System.Threading.Tasks.Task.

StartNew<TResult>(Func<TResult>) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<object, TResult>, object) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<TResult>, System.Threading.CancellationToken) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<TResult>, TaskCreationOptions) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<object, TResult>, object, System.Threading.CancellationToken) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<object, TResult>, object, TaskCreationOptions) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<TResult>, System.Threading.CancellationToken, TaskCreationOptions, TaskScheduler) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.

StartNew<TResult>(Func<object, TResult>, object, System.Threading.CancellationToken, TaskCreationOptions, TaskScheduler) : Task<TResult>

Creates and starts a System.Threading.Tasks.Task`1.