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

傳回

Boolean

基礎 DispatcherOperation 的狀態。

備註

trueTask如果 與 DispatcherOperation 相關聯,則為 ,否則為 false

適用於