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

Definition

Wartet, bis die zugrunde liegende DispatcherOperation abgeschlossen ist.Waits for the underlying DispatcherOperation to complete.

Überlädt

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

Wartet, bis die zugrunde liegende DispatcherOperation abgeschlossen ist.Waits indefinitely for the underlying DispatcherOperation to complete.

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

Wartet die angegebene Zeitdauer auf den Abschluss der zugrunde liegenden DispatcherOperation.Waits for the specified amount of time for the underlying DispatcherOperation to complete.

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

Wartet, bis die zugrunde liegende DispatcherOperation abgeschlossen ist.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

Parameter

this
Task Task Task Task

Das Task, das diesem DispatcherOperation zugeordnet ist.The Task that is associated with the DispatcherOperation.

Gibt zurück

Ausnahmen

Hinweise

Rufen Sie die IsDispatcherOperationTask Methode, um zu überprüfen, ob die Task zugeordnet ist eine DispatcherOperation vor dem Aufruf dieser Methode.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)

Wartet die angegebene Zeitdauer auf den Abschluss der zugrunde liegenden DispatcherOperation.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

Parameter

this
Task Task Task Task

Das Task, das diesem DispatcherOperation zugeordnet ist.The Task that is associated with the DispatcherOperation.

timeout
TimeSpan TimeSpan TimeSpan TimeSpan

Die Menge an Wartezeit.The amount of time to wait.

Gibt zurück

Ausnahmen

Hinweise

Rufen Sie die IsDispatcherOperationTask Methode, um zu überprüfen, ob die Task zugeordnet ist eine DispatcherOperation vor dem Aufruf dieser Methode.Call the IsDispatcherOperationTask method to check whether the Task is associated with a DispatcherOperation before you call this method.

Gilt für: