Task Class
This topic describes several internal members of the System.Threading.Tasks.Task class to help you implement a custom debugger. For general information about this class, see Task.
Notes
This information is specific to .NET Framework 4 and is subject to change in a future release.
Because you cannot access these members from the .NET Framework, this topic provides syntax in Microsoft intermediate language (MSIL). For more information about MSIL, see Compiling to MSIL.
Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
.class public auto ansi System.Threading.Tasks.Task
extends System.Object
implements System.Threading.IThreadPoolWorkItem,
System.IAsyncResult,
System.IDisposable,
System.Threading.ICancelableOperation
Members
Classes
Name |
Description |
---|---|
Contains additional properties for a Task object. |
Fields
Name |
Description |
---|---|
The delegate that represents the code to execute in the Task object. |
|
Stores additional properties of the Task object. |
|
The backing field for the TaskParent() property. |
|
Stores information about the current state of the Task object. |
|
An object that represents data that will be used by the action. |
|
The backing field for the Task.Id property. |
|
The next available identifier for a Task object. |
|
Indicates that the task was canceled before it reached the running state, or that the task acknowledged its cancellation and completed without exception. |
|
Indicates that the task is running. |
|
Indicates that the task completed because of an unhandled exception. |
|
Indicates that the task completed execution successfully. |
|
Indicates that the task has finished executing its delegate and is implicitly waiting for attached child tasks to finish. |
Remarks
The following internal methods are useful to a debugger engine because they mark the entrance to Task code execution:
Execute
ExecuteEntry
ExecuteWithThreadLocal
Finish
InnerInvoke
InternalWait