ProjectRootElement.CreateOnErrorElement(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.
Creates an on error node. Caller must add it to the location of choice in the project.
public:
Microsoft::Build::Construction::ProjectOnErrorElement ^ CreateOnErrorElement(System::String ^ executeTargets);
public Microsoft.Build.Construction.ProjectOnErrorElement CreateOnErrorElement (string executeTargets);
member this.CreateOnErrorElement : string -> Microsoft.Build.Construction.ProjectOnErrorElement
Public Function CreateOnErrorElement (executeTargets As String) As ProjectOnErrorElement
Parameters
- executeTargets
- String
The targets to execute if a task fails.
Returns
The OnError element.
Remarks
Caller must add the OnError element to the location of choice in the project.