語言

TaskExtensions.IsDispatcherOperationTask(Task) 方法

定義

回傳一個值,表示此值 Task 是否與 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

去 Task 檢查一下。

傳回

標的資產 DispatcherOperation的狀態。

備註

true 若 與 Task 相關 DispatcherOperation聯;否則, false。

適用於