共用方式為


s_taskIdCounter Field

The next available identifier for a Task object.

Namespace:  System.Threading.Tasks

Assembly:  mscorlib (in mscorlib.dll)

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

.field static assembly int32 s_taskIdCounter

See Also

Reference

Task Class - Internal Members