Edit

Share via


CompensableActivity.CompensationHandler Property

Definition

Gets or sets the activity that is scheduled when compensation is performed on the CompensableActivity.

public:
 property System::Activities::Activity ^ CompensationHandler { System::Activities::Activity ^ get(); void set(System::Activities::Activity ^ value); };
[System.Windows.Markup.DependsOn("CancellationHandler")]
public System.Activities.Activity CompensationHandler { get; set; }
[<System.Windows.Markup.DependsOn("CancellationHandler")>]
member this.CompensationHandler : System.Activities.Activity with get, set
Public Property CompensationHandler As Activity

Property Value

The activity that is scheduled when compensation is performed on the CompensableActivity.

Attributes

Remarks

CompensationHandler can be used to specify custom compensation 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