ProjectRootElement.AddPropertyGroup 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.
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.