Bewerken

Delen via


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.

public:
 void AbortChildInstance(System::Activities::ActivityInstance ^ activity);
public void AbortChildInstance (System.Activities.ActivityInstance activity);
member this.AbortChildInstance : System.Activities.ActivityInstance -> unit
Public Sub AbortChildInstance (activity As ActivityInstance)

Parameters

activity
ActivityInstance

A child of the currently executing NativeActivity.

Applies to

AbortChildInstance(ActivityInstance, Exception)

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

public:
 void AbortChildInstance(System::Activities::ActivityInstance ^ activity, Exception ^ reason);
public void AbortChildInstance (System.Activities.ActivityInstance activity, Exception reason);
member this.AbortChildInstance : System.Activities.ActivityInstance * Exception -> unit
Public Sub AbortChildInstance (activity As ActivityInstance, reason As Exception)

Parameters

activity
ActivityInstance

A child of the currently executing NativeActivity.

reason
Exception

The error that caused the child activity to abort.

Applies to