Returns the task which is currently being processed. Use this only inside a task operation.

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

Syntax

C#
public static Task CurrentTask { get; }
Visual Basic
Public Shared ReadOnly Property CurrentTask As Task
	Get
Visual C++
public:
static property Task^ CurrentTask {
	Task^ get ();
}

See Also