ProjectItemDefinitionGroupElement.AddItemDefinition(String) 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 item definition after the last child.
public:
Microsoft::Build::Construction::ProjectItemDefinitionElement ^ AddItemDefinition(System::String ^ itemType);
public Microsoft.Build.Construction.ProjectItemDefinitionElement AddItemDefinition (string itemType);
member this.AddItemDefinition : string -> Microsoft.Build.Construction.ProjectItemDefinitionElement
Public Function AddItemDefinition (itemType As String) As ProjectItemDefinitionElement
Parameters
- itemType
- String
Element name of item to be added.
Returns
The new item definition.
Remarks
This convenience method picks a location in the project DOM based on a heuristic.