Gets the optional task cancellation message.
Namespace: AGI.Parallel.Infrastructure
Assembly: AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
public string TaskCancellationMessage { get; internal set; }
Visual Basic
Public Property TaskCancellationMessage As String
        Get
        Friend Set

Field Value

The task cancellation message.

Examples

  Copy imageCopy
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