TaskExtensions.IsDispatcherOperationTask(Task) 方法

定義

傳回值,表示這個 Task 是否與 DispatcherOperation 關聯。Returns a value that indicates whether this Task is associated with a DispatcherOperation.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDispatcherOperationTask(System::Threading::Tasks::Task ^ this);
public static bool IsDispatcherOperationTask (this System.Threading.Tasks.Task this);
static member IsDispatcherOperationTask :  -> bool
<Extension()>
Public Function IsDispatcherOperationTask (this As Task) As Boolean

參數

this
Task

要進行檢查的 TaskThe Task to check.

傳回

基礎 DispatcherOperation 的狀態。The status of the underlying DispatcherOperation.

備註

true如果與相關聯, 則為, false否則為。 DispatcherOperation Tasktrue if the Task is associated with a DispatcherOperation; otherwise, false.

適用於