Freigeben über


Target.RemoveTask(BuildTask) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Removes the specified BuildTask from the target. This method correctly updates the project's XML content, so the task will no longer show up when the project is saved out.

public:
 void RemoveTask(Microsoft::Build::BuildEngine::BuildTask ^ taskElement);
public void RemoveTask (Microsoft.Build.BuildEngine.BuildTask taskElement);
member this.RemoveTask : Microsoft.Build.BuildEngine.BuildTask -> unit
Public Sub RemoveTask (taskElement As BuildTask)

Parameters

taskElement
BuildTask

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to