Share via


TaskFailedException.TaskId Property

Definition

Gets the ID of the failed task.

public int TaskId { get; }
member this.TaskId : int
Public ReadOnly Property TaskId As Integer

Property Value

Remarks

Each durable task (activities, timers, sub-orchestrations, etc.) scheduled by a task orchestrator has an auto-incrementing ID associated with it. This ID is used to distinguish tasks from one another, even if, for example, they are tasks that call the same activity. This ID can therefore be used to more easily correlate a specific task failure to a specific task.

Applies to