Sdílet prostřednictvím


ProjectRootElement.CreateOnErrorElement(String) Method

Definition

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.

Applies to