TaskExtensions.DispatcherOperationWait Método

Definição

Aguarda a conclusão do DispatcherOperation subjacente.Waits for the underlying DispatcherOperation to complete.

Sobrecargas

DispatcherOperationWait(Task)

Aguarda indefinidamente a conclusão do DispatcherOperation subjacente.Waits indefinitely for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task, TimeSpan)

Aguarda a conclusão do DispatcherOperation subjacente pelo período de tempo especificado.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task)

Aguarda indefinidamente a conclusão do DispatcherOperation subjacente.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

Parâmetros

this
Task

O Task associado ao DispatcherOperation.The Task that is associated with the DispatcherOperation.

Retornos

O status do DispatcherOperation subjacente.The status of the underlying DispatcherOperation.

Exceções

O Task não está associado a um DispatcherOperation.The Task is not associated with a DispatcherOperation.

Comentários

Chame o IsDispatcherOperationTask método para verificar se o Task está associado a um DispatcherOperation antes de chamar esse método.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

DispatcherOperationWait(Task, TimeSpan)

Aguarda a conclusão do DispatcherOperation subjacente pelo período de tempo especificado.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

Parâmetros

this
Task

O Task associado ao DispatcherOperation.The Task that is associated with the DispatcherOperation.

timeout
TimeSpan

O período de espera para aguardar.The amount of time to wait.

Retornos

O status do DispatcherOperation subjacente.The status of the underlying DispatcherOperation.

Exceções

O Task não está associado a um DispatcherOperation.The Task is not associated with a DispatcherOperation.

Comentários

Chame o IsDispatcherOperationTask método para verificar se o Task está associado a um DispatcherOperation antes de chamar esse método.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

Aplica-se a