Share via


ImpersonationSequenceActivity.Cancel Method

Cancels the activity.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Protected Overrides Function Cancel ( _
    executionContext As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim executionContext As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus

returnValue = Me.Cancel(executionContext)
protected override ActivityExecutionStatus Cancel(
    ActivityExecutionContext executionContext
)

Parameters

Return Value

Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity after canceling the execution.

Remarks

The workflow runtime calls this override to cancel the activity.

This override also cancels the child activities of the activity.

This override throws an ArgumentNullException if the executionContext is null .

See Also

Reference

ImpersonationSequenceActivity Class

ImpersonationSequenceActivity Members

Microsoft.SharePoint.WorkflowActions Namespace