TargetCollection.AddNewTarget(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new Target element to the end of the project.
public:
Microsoft::Build::BuildEngine::Target ^ AddNewTarget(System::String ^ targetName);
public Microsoft.Build.BuildEngine.Target AddNewTarget (string targetName);
member this.AddNewTarget : string -> Microsoft.Build.BuildEngine.Target
Public Function AddNewTarget (targetName As String) As Target
Parameters
- targetName
- String
The Name
attribute of the new Target
element.
Returns
A Target object representing the created Target
element.