Starts the given Task when this Task ended successfully.

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

Syntax

C#
public static Task Then(
	this Task that,
	Task followingTask
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Then ( _
	that As Task, _
	followingTask As Task _
) As Task
Visual C++
[ExtensionAttribute]
public:
static Task^ Then(
	Task^ that, 
	Task^ followingTask
)

Parameters

that
Type: UnityThreading..::..Task
followingTask
Type: UnityThreading..::..Task
The task to start.

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