NativeActivityContext.AbortChildInstance Method

Definition

Aborts an instance of a NativeActivity child activity.

Overloads

AbortChildInstance(ActivityInstance)

Aborts the specified instance of a NativeActivity child activity.

AbortChildInstance(ActivityInstance, Exception)

Aborts the specified instance of a NativeActivity child activity for the specified reason.

AbortChildInstance(ActivityInstance)

Aborts the specified instance of a NativeActivity child activity.

C#
public void AbortChildInstance(System.Activities.ActivityInstance activity);

Parameters

activity
ActivityInstance

A child of the currently executing NativeActivity.

Applies to

.NET Framework 4.8.1 and other versions
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

AbortChildInstance(ActivityInstance, Exception)

Aborts the specified instance of a NativeActivity child activity for the specified reason.

C#
public void AbortChildInstance(System.Activities.ActivityInstance activity, Exception reason);

Parameters

activity
ActivityInstance

A child of the currently executing NativeActivity.

reason
Exception

The error that caused the child activity to abort.

Applies to

.NET Framework 4.8.1 and other versions
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