TaskFactory<TResult>.FromAsync Method (IAsyncResult, Func<IAsyncResult, TResult>, TaskCreationOptions)
Creates a task that executes an end method function when a specified IAsyncResult completes.
Assembly: mscorlib (in mscorlib.dll)
public Task<TResult> FromAsync( IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions )
The IAsyncResult whose completion should trigger the processing of the endMethod.
The function delegate that processes the completed asyncResult.
One of the enumeration values that controls the behavior of the created task.
Available since 4.5
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Available since 8.1