ProjectRootElement.AddPropertyGroup Method

Definition

Convenience method that picks a location based on a heuristic: Adds a new property group after the last existing property group, if any; otherwise at the start of the project.

public:
 Microsoft::Build::Construction::ProjectPropertyGroupElement ^ AddPropertyGroup();
public Microsoft.Build.Construction.ProjectPropertyGroupElement AddPropertyGroup ();
member this.AddPropertyGroup : unit -> Microsoft.Build.Construction.ProjectPropertyGroupElement
Public Function AddPropertyGroup () As ProjectPropertyGroupElement

Returns

The added property group.

Remarks

Creates a property group and adds it after the last existing property group, if any. Otherwise, adds the property group to the start of the project.

Applies to