Partager via


GetTaskSchedulersForDebugger Method

Retrieves an array of all TaskScheduler objects that are currently active.

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).

.method assembly hidebysig static class System.Threading.Tasks.TaskScheduler[] GetTaskSchedulersForDebugger() cil managed

Return Value

An array of all TaskScheduler objects that are currently active in this AppDomain.

Remarks

This method is not thread safe and should not be used concurrently with other instances of TaskScheduler. It should be called from a debugger only when the debugger has suspended all other threads.

See Also

Reference

TaskScheduler Class - Internal Members