CompensableActivity.CancellationHandler 属性

定义

获取或设置在取消活动时安排的活动。

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

属性值

在取消活动时安排的活动。

属性

注解

CancellationHandler 可用于为 BodyCompensableActivity指定自定义取消逻辑。

此属性在运行时为只读。 如果在运行时设置值,则会引发 InvalidOperationException

适用于