Edit

Share via


AsyncCodeActivity<TResult>.Cancel(AsyncCodeActivityContext) Method

Definition

When implemented in a derived class and using the specified execution environment information, notifies the workflow runtime that the asynchronous activity operation has been canceled. This method serves as a virtual method.

C#
protected virtual void Cancel(System.Activities.AsyncCodeActivityContext context);

Parameters

context
AsyncCodeActivityContext

Information that defines the execution environment for the AsyncCodeActivity.

Applies to

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