TaskCompletionSource<TResult> Constructor (TaskCreationOptions)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a TaskCompletionSource<TResult> with the specified options.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- creationOptions
- Type: System.Threading.Tasks.TaskCreationOptions
The options to use when creating the underlying Task<TResult>.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The creationOptions represent options invalid for use with a TaskCompletionSource<TResult>. |
The Task<TResult> created by this instance and accessible through its Task property will be instantiated using the specified creationOptions.
Show: