Expand Minimize

TaskFactory.FromAsync Method

Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method FromAsync(IAsyncResult, Action<IAsyncResult>) Creates a task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>) Creates a task that executes an end method function when a specified IAsyncResult completes.
Public method 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 (APM).
Public method FromAsync<TResult>(Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, Object) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions) Creates a task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions) Creates a task that executes an end method function when a specified IAsyncResult completes.
Public method 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 (APM).
Public method FromAsync<TResult>(Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, Object, TaskCreationOptions) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method 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 (APM).
Public method FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, Object) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method FromAsync(IAsyncResult, Action<IAsyncResult>, TaskCreationOptions, TaskScheduler) Creates a task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync<TResult>(IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions, TaskScheduler) Creates a TaskFactory<TResult> that executes an end method function when a specified IAsyncResult completes.
Public method 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 (APM).
Public method FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, Object, TaskCreationOptions) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method 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 (APM).
Public method FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, Object) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method 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 (APM).
Public method FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, Object, TaskCreationOptions) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method 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 (APM).
Public method FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, Object) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Public method 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 (APM).
Public method FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>, TArg1, TArg2, TArg3, Object, TaskCreationOptions) Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model (APM).
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft