TaskExtensions.DispatcherOperationWait Método

Definición

Espera a que se complete el DispatcherOperation subyacente.Waits for the underlying DispatcherOperation to complete.

Sobrecargas

DispatcherOperationWait(Task)

Espera indefinidamente a que se complete la DispatcherOperation subyacente.Waits indefinitely for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task, TimeSpan)

Espera la cantidad de tiempo especificada para que se complete el DispatcherOperation subyacente.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

DispatcherOperationWait(Task)

Espera indefinidamente a que se complete la DispatcherOperation subyacente.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

Task asociado a la DispatcherOperation.The Task that is associated with the DispatcherOperation.

Devoluciones

Estado del DispatcherOperation subyacente.The status of the underlying DispatcherOperation.

Excepciones

Task no está asociado a DispatcherOperation.The Task is not associated with a DispatcherOperation.

Comentarios

Llame al Task DispatcherOperation método para comprobar si el objeto está asociado a un objeto antes de llamar a este método. IsDispatcherOperationTaskCall the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

DispatcherOperationWait(Task, TimeSpan)

Espera la cantidad de tiempo especificada para que se complete el DispatcherOperation subyacente.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

Task asociado a la DispatcherOperation.The Task that is associated with the DispatcherOperation.

timeout
TimeSpan

Cantidad de tiempo que va a esperar.The amount of time to wait.

Devoluciones

Estado del DispatcherOperation subyacente.The status of the underlying DispatcherOperation.

Excepciones

Task no está asociado a DispatcherOperation.The Task is not associated with a DispatcherOperation.

Comentarios

Llame al Task DispatcherOperation método para comprobar si el objeto está asociado a un objeto antes de llamar a este método. IsDispatcherOperationTaskCall the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

Se aplica a