ProjectPropertyGroupElement.AddProperty(String, String) Method

Definition

Convenience method that picks a location based on a heuristic: Adds a new property after the last property in this property group.

public:
 Microsoft::Build::Construction::ProjectPropertyElement ^ AddProperty(System::String ^ name, System::String ^ unevaluatedValue);
public Microsoft.Build.Construction.ProjectPropertyElement AddProperty (string name, string unevaluatedValue);
member this.AddProperty : string * string -> Microsoft.Build.Construction.ProjectPropertyElement
Public Function AddProperty (name As String, unevaluatedValue As String) As ProjectPropertyElement

Parameters

name
String

The property name.

unevaluatedValue
String

The property value.

Returns

The new property.

Remarks

This convenience method picks a location in the MSBuild DOM based on a heuristic.

Applies to