UIThreadOperationExecutionOptions.AllowCancellation Property     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Whether to allow cancellability.
public:
 property bool AllowCancellation { bool get(); };public bool AllowCancellation { get; }member this.AllowCancellation : boolPublic ReadOnly Property AllowCancellation As Boolean