NativeActivityContext.AbortChildInstance Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Aborts an instance of a NativeActivity child activity.
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. |
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
.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 |
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
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: