Edit

Share via


CompensableActivity.CancellationHandler Property

Definition

Gets or sets the activity that is scheduled when the activity is canceled.

C#
[System.Windows.Markup.DependsOn("Body")]
public System.Activities.Activity CancellationHandler { get; set; }

Property Value

The activity that is scheduled when the activity is canceled.

Attributes

Remarks

CancellationHandler can be used to specify custom cancellation logic for the Body of the CompensableActivity.

This property is read-only at runtime. If the value is set at runtime, an InvalidOperationException is thrown.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1