Task.Run Method (Action)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Queues the specified work to run on the ThreadPool and returns a Task handle for that work.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- action
- Type: System.Action
The work to execute asynchronously
Return Value
Type: System.Threading.Tasks.TaskA Task that represents the work queued to execute in the ThreadPool.
| Exception | Condition |
|---|---|
| ArgumentNullException | The action parameter was null. |
Show: