The given Action will be performed when the task succeeds.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static Task WhenSucceeded(
	this Task task,
	Action<Task> action,
	DispatcherBase actiontargetTarget
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function WhenSucceeded ( _
	task As Task, _
	action As Action(Of Task), _
	actiontargetTarget As DispatcherBase _
) As Task
Visual C++
[ExtensionAttribute]
public:
static Task^ WhenSucceeded(
	Task^ task, 
	Action<Task^>^ action, 
	DispatcherBase^ actiontargetTarget
)

Parameters

task
Type: UnityThreading..::..Task
action
Type: System..::..Action<(Of <(<'Task>)>)>
The action to perform.
actiontargetTarget
Type: UnityThreading..::..DispatcherBase

Return Value

This task.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Task. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also