Skip to main content
Set the display label of the currently executing task. This function is intended to be used inside a task Execute method.

Parameters

context.Context
required
The task execution context.
string
required
The display label to set for the current task.

Returns

An error if the context is not a task execution context.