Partage via


TaskExtensions.IsDispatcherOperationTask(Task) Méthode

Définition

Retourne une valeur qui indique si cette Task est associée à une 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

Paramètres

this
Task

Task à vérifier.

Retours

Boolean

État de l'DispatcherOperation sous-jacente.

Remarques

true si l’objet Task est associé à un DispatcherOperation; sinon, false.

S’applique à