次の方法で共有


GetTaskSchedulersForDebugger Method

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

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

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

.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 you shouldn't use it concurrently with other instances of TaskScheduler. Call this method from a debugger only when the debugger has suspended all other threads.

See also