Property TaskFailureReason
TaskFailureReason
Returns reason behind the failure of task.
Declaration
string TaskFailureReason { get; }
Property Value
Type | Description |
---|---|
System.String |
Examples
Example prints task failure reason
if (result.TaskStatus == TaskCompletionStatus.Failure)
{
Console.WriteLine(result.TaskFailureReason);
}