TaskExtensions.IsDispatcherOperationTask(Task) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示此值 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
參數
傳回
標的資產 DispatcherOperation的狀態。
備註
true 若 與 Task 相關 DispatcherOperation聯;否則, false。