Condividi tramite


ICancelableTask Interface

Interface for tasks which can be cancelled.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
Public Interface ICancelableTask _
    Inherits ITask
public interface ICancelableTask : ITask
public interface class ICancelableTask : ITask
type ICancelableTask =  
    interface 
        interface ITask 
    end
public interface ICancelableTask extends ITask

The ICancelableTask type exposes the following members.

Properties

  Name Description
Public property BuildEngine Gets or sets the build engine associated with the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ITask.)
Public property HostObject Gets or sets any host object that is associated with the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ITask.)

Top

Methods

  Name Description
Public method Cancel Instructs the task to exit as soon as possible, or to immediately exit if Execute is invoked after this method.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method Execute Executes a task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from ITask.)

Top

See Also

Reference

Microsoft.Build.Framework Namespace