System::Threading::Tasks::ResultTask::ContinueWith Methode

ResultTask::ContinueWith(const Action<RTaskPtr<T>>&) method

Erstellt eine Fortsetzung, die ausgeführt wird, wenn der Ergebnis‑Task abgeschlossen ist.

TaskPtr System::Threading::Tasks::ResultTask<T>::ContinueWith(const Action<RTaskPtr<T>> &continuationAction)
ParameterTypBeschreibung
continuationActionconst Action<RTaskPtr<T>>&Action zum Ausführen, wenn diese Aufgabe abgeschlossen ist und diese ResultTask empfängt

ReturnValue

TaskPtr A new task representing the continuation

Hinweise

Die Fortsetzungsaktion erhält diese ResultTask, um auf den Ergebniswert zuzugreifen

Siehe auch

ResultTask::ContinueWith(const Action<TaskPtr>&) method

Erstellt eine Fortsetzung, die ausgeführt wird, wenn der Task abgeschlossen ist.

TaskPtr System::Threading::Tasks::Task::ContinueWith(const Action<TaskPtr> &continuationAction)
ParameterTypBeschreibung
continuationActionconst Action<TaskPtr>&Action zum Ausführen, wenn diese Aufgabe abgeschlossen ist

ReturnValue

TaskPtr A new task representing the continuation

Siehe auch

ResultTask::ContinueWith(const Func<RTaskPtr<T>, TNewResult>&) method

Erstellt eine Fortsetzung, die ausgeführt wird, wenn der Ergebnis‑Task abgeschlossen ist.

template<typename TNewResult> RTaskPtr<TNewResult> System::Threading::Tasks::ResultTask<T>::ContinueWith(const Func<RTaskPtr<T>, TNewResult> &continuationFunction)
ParameterBeschreibung
TNewResultErgebnistyp der Aufgabenfortsetzung
ParameterTypBeschreibung
continuationFunctionconst Func<RTaskPtr<T>, TNewResult>&Funktion, um das Fortsetzungsergebnis zu erhalten, wenn diese Aufgabe abgeschlossen ist, und diese ResultTask empfängt

ReturnValue

RTaskPtr A new task representing the continuation

Hinweise

Die Fortsetzungsfunktion erhält dieses ResultTask, um auf den Ergebniswert zuzugreifen.

Siehe auch

ResultTask::ContinueWith(const Func<TaskPtr, TResult>&) method

Erstellt eine Fortsetzung, die ausgeführt wird, wenn der Task abgeschlossen ist.

template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::Task::ContinueWith(const Func<TaskPtr, TResult> &continuationFunction)
ParameterBeschreibung
TResultEin Typ von Task-Ergebnis
ParameterTypBeschreibung
continuationFunctionconst Func<TaskPtr, TResult>&Funktion, um das Ergebnis zu erhalten, wenn diese Aufgabe abgeschlossen ist.

ReturnValue

RTaskPtr A new task representing the continuation

Siehe auch