共用方式為


m_children field

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The list of child tasks that are registered with this task.

Namespace: System.Threading.Tasks

Assembly: mscorlib (in mscorlib.dll)

Because you can't access this internal member from the .NET Framework, the following syntax is provided in Common Intermediate Language (CIL).

Syntax

.field public class System.Collections.Generic.List`1<class System.Threading.Tasks.Task> m_children

Remarks

While the task is running, only the thread that executes the task should access this array.

If the task is completed, other threads can access this field as long as they don't add anything to it or remove anything from it.

See also