This topic has not yet been rated Rate this topic

TaskFactory.FromAsync Method

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

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

  Name Description
Public method FromAsync(IAsyncResult, Action(Of IAsyncResult)) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync(Of TResult)(IAsyncResult, Func(Of IAsyncResult, TResult)) Creates a Task(Of TResult) that executes an end method function when a specified IAsyncResult completes.
Public method FromAsync(Func(Of AsyncCallback, Object, IAsyncResult), Action(Of IAsyncResult), Object) Creates a Task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TResult)(Func(Of AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), Object) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(IAsyncResult, Action(Of IAsyncResult), TaskCreationOptions) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync(Of TResult)(IAsyncResult, Func(Of IAsyncResult, TResult), TaskCreationOptions) Creates a Task(Of TResult) that executes an end method function when a specified IAsyncResult completes.
Public method FromAsync(Func(Of AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TResult)(Func(Of AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), Object, TaskCreationOptions) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TArg1)(Func(Of TArg1, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TResult)(Func(Of TArg1, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, Object) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(IAsyncResult, Action(Of IAsyncResult), TaskCreationOptions, TaskScheduler) Creates a Task that executes an end method action when a specified IAsyncResult completes.
Public method FromAsync(Of TResult)(IAsyncResult, Func(Of IAsyncResult, TResult), TaskCreationOptions, TaskScheduler) Creates a Task(Of TResult) that executes an end method function when a specified IAsyncResult completes.
Public method FromAsync(Of TArg1)(Func(Of TArg1, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TResult)(Func(Of TArg1, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, Object, TaskCreationOptions) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TArg1, TArg2)(Func(Of TArg1, TArg2, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TArg2, TResult)(Func(Of TArg1, TArg2, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, TArg2, Object) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TArg1, TArg2)(Func(Of TArg1, TArg2, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TArg2, TResult)(Func(Of TArg1, TArg2, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, TArg2, Object, TaskCreationOptions) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TArg1, TArg2, TArg3)(Func(Of TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TArg2, TArg3, TResult)(Func(Of TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, TArg2, TArg3, Object) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Public method FromAsync(Of TArg1, TArg2, TArg3)(Func(Of TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult), Action(Of 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 FromAsync(Of TArg1, TArg2, TArg3, TResult)(Func(Of TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult), Func(Of IAsyncResult, TResult), TArg1, TArg2, TArg3, Object, TaskCreationOptions) Creates a Task(Of TResult) that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ