Compartir a través de


ITask.Execute Method

Definition

This method is called by the build engine to begin task execution. A task uses the return value to indicate whether it was successful. If a task throws an exception out of this method, the engine will automatically assume that the task has failed.

public:
 bool Execute();
public bool Execute ();
abstract member Execute : unit -> bool
Public Function Execute () As Boolean

Returns

true, if successful

Remarks

This method is called by the build engine to execute a task. Upon termination of this method, a task should indicate if the execution was successful. If a task throws an exception from this method, the engine assumes that the task has failed.

Applies to