TaskTaskCancellationMessage Property

Gets the optional task cancellation message.
Namespace:  AGI.Parallel.Infrastructure
Assembly:  AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.3.0.366 (1.3.0.366)
Syntax
public string TaskCancellationMessage { get; }

Property Value

Type: String
The task cancellation message.
Examples
if (job.Tasks[0].TaskStatus == TaskStatus.Canceled)
{
    if (!string.IsNullOrEmpty(job.Tasks[0].TaskCancellationMessage))
    {
        Console.WriteLine("Task was canceled. Message was: " + job.Tasks[0].TaskCancellationMessage);
    }
}
See Also

STK Scalability 1.3 API for .NET