TaskFactory<TResult>.StartNew Method (Func<TResult>, CancellationToken)
Creates and starts a Task<TResult>.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Function StartNew ( _ function As Func(Of TResult), _ cancellationToken As CancellationToken _ ) As Task(Of TResult)
public Task<TResult> StartNew( Func<TResult> function, CancellationToken cancellationToken )
A function delegate that returns the future result to be available through the Task<TResult>.
However, unless creation and scheduling must be separated, StartNew is the recommended approach for both simplicity and performance.
Supported in: 5
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.