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 的状态。

注解

true如果与 a 关联,Task则为 ;否则为 falseDispatcherOperation

适用于