TaskFactory<TResult>.FromAsync Method (IAsyncResult, Func<IAsyncResult, TResult>)
Creates a 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 )
- Type: System.IAsyncResult
The IAsyncResult whose completion should trigger the processing of the endMethod.
The exception that is thrown when the asyncResult argument is null.
The exception that is thrown when the endMethod argument is null.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.