Target.AddNewTask(String) Method

Definition

Adds the specified Task element to the Target element.

public:
 Microsoft::Build::BuildEngine::BuildTask ^ AddNewTask(System::String ^ taskName);
public Microsoft.Build.BuildEngine.BuildTask AddNewTask (string taskName);
member this.AddNewTask : string -> Microsoft.Build.BuildEngine.BuildTask
Public Function AddNewTask (taskName As String) As BuildTask

Parameters

taskName
String

The BuildTask object that represents the Task element to add to the Target element.

Returns

A BuildTask object represents a child Task element of the Target element.

Applies to