Click or drag to resize

TaskTaskCancellationMessage Property

Gets the optional task cancellation message.

Namespace:  AGI.Parallel.Infrastructure
Assembly:  AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 2.9.0.1601 (2.9.0.1601)
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 Parallel Computing Server 2.9 API for .NET