Partager via


GetScheduledTasksForDebugger Method

Note

This article applies to Visual Studio 2015. 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

Retrieves an array of all scheduled tasks.

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

Syntax

.method assembly hidebysig instance class System.Threading.Tasks.Task[] GetScheduledTasksForDebugger() cil managed  

Return Value

An array of all scheduled tasks. Each task is executing or has finished executing.

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

TaskScheduler Class