TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait TaskExtensions.DispatcherOperationWait Method

Définition

Attend que DispatcherOperation sous-jacente se termine.Waits for the underlying DispatcherOperation to complete.

Surcharges

DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task)

Attend indéfiniment que l'opération DispatcherOperation sous-jacente se termine.Waits indefinitely for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan)

Attend pendant le délai spécifié que le DispatcherOperation sous-jacente se termine.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task) DispatcherOperationWait(Task)

Attend indéfiniment que l'opération DispatcherOperation sous-jacente se termine.Waits indefinitely for the underlying DispatcherOperation to complete.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperationStatus DispatcherOperationWait(System::Threading::Tasks::Task ^ this);
public static System.Windows.Threading.DispatcherOperationStatus DispatcherOperationWait (this System.Threading.Tasks.Task this);
static member DispatcherOperationWait :  -> System.Windows.Threading.DispatcherOperationStatus
<Extension()>
Public Function DispatcherOperationWait (this As Task) As DispatcherOperationStatus

Paramètres

this
Task Task Task Task

Task associé à l'DispatcherOperation.The Task that is associated with the DispatcherOperation.

Retours

Exceptions

Remarques

Appelez le IsDispatcherOperationTask méthode permettant de vérifier si le Task est associé un DispatcherOperation avant d’appeler cette méthode.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan) DispatcherOperationWait(Task, TimeSpan)

Attend pendant le délai spécifié que le DispatcherOperation sous-jacente se termine.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Threading::DispatcherOperationStatus DispatcherOperationWait(System::Threading::Tasks::Task ^ this, TimeSpan timeout);
public static System.Windows.Threading.DispatcherOperationStatus DispatcherOperationWait (this System.Threading.Tasks.Task this, TimeSpan timeout);
static member DispatcherOperationWait : TimeSpan -> System.Windows.Threading.DispatcherOperationStatus
<Extension()>
Public Function DispatcherOperationWait (this As Task, timeout As TimeSpan) As DispatcherOperationStatus

Paramètres

this
Task Task Task Task

Task associé à l'DispatcherOperation.The Task that is associated with the DispatcherOperation.

timeout
TimeSpan TimeSpan TimeSpan TimeSpan

Temps d'attente.The amount of time to wait.

Retours

Exceptions

Remarques

Appelez le IsDispatcherOperationTask méthode permettant de vérifier si le Task est associé un DispatcherOperation avant d’appeler cette méthode.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

S’applique à