Freigeben über


ProjectRootElement.AddItemDefinitionGroup Method

Definition

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

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

Returns

The added item definition group.

Remarks

Creates and adds an item definition group after the last existing item definition group, if any. Otherwise, creates an item definition group after the last existing property group, if any. If no property group exists, creates a new item definition group at the end of the project.

Applies to