TaskExtensions.IsDispatcherOperationTask Method (Task)

.NET Framework (current version)
 

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)

<ExtensionAttribute>
Public Shared Function IsDispatcherOperationTask (
	this As Task
) As Boolean

Parameters

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
Show: