TaskFactory<TResult>::FromAsync Method (IAsyncResult^, Func<IAsyncResult^, TResult>^)
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 )
The IAsyncResult whose completion should trigger the processing of the endMethod.
The asyncResult argument is null.
The endMethod argument is null.
Available since 8
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