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

Проверяемый элемент Task.The Task to check.

Возвращаемое значение

Состояние базового DispatcherOperation.The status of the underlying DispatcherOperation.

Комментарии

true, DispatcherOperation Task Еслиобъектсвязанс;впротивномслучае—.falsetrue if the Task is associated with a DispatcherOperation; otherwise, false.

Применяется к