TaskExtensions.IsDispatcherOperationTask Method (Task)

.NET Framework 4.6 and 4.5

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 Shared Function IsDispatcherOperationTask (
	this As Task
) As Boolean


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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft