TaskExtensions.IsDispatcherOperationTask Method (Task)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether this Task is associated with a DispatcherOperation.

Namespace:   System.Windows.Threading
Assembly:  System.Windows.Presentation (in System.Windows.Presentation.dll)

public static bool IsDispatcherOperationTask(
	this Task this


Type: System.Threading.Tasks.Task

The Task to check.

Return Value

Type: System.Boolean

The status of the underlying DispatcherOperation.

true if the Task is associated with a DispatcherOperation; otherwise, false.

.NET Framework
Available since 4.5
Return to top