RVTDocs.com
Namespace: Autodesk.Revit.UI Class: TaskDialog

TaskDialog.AllowCancellation

Property
Description:
Whether the task dialog can be cancelled if no cancel button is specified.
Remarks:
The default value is true. If there is a cancel button in the task dialog, the it always can be cancelled.
Syntax
public bool AllowCancellation { get; set; }