CancelAsync Method (WorkflowApplication)

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Async Task to Cancel the workflow

Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public static Task CancelAsync(
	this WorkflowApplication workflowApplication
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function CancelAsync ( _
	workflowApplication As WorkflowApplication _
) As Task
Visual C++
public:
[ExtensionAttribute]
static Task^ CancelAsync(
	WorkflowApplication^ workflowApplication
)

Parameters

workflowApplication
Type: System.Activities..::..WorkflowApplication
The workflow application.

Return Value

A Task to Cancel the workflow

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WorkflowApplication. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also