ToolTask.Cancel Method

Definition

Cancels the process executing the task by asking it to close nicely, then after a short period, forcing termination.

C#
public virtual void Cancel();

Implements

Applies to

Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17