Udostępnij za pośrednictwem


ProjectItemDefinitionGroupElement.AddItemDefinition(String) Method

Definition

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.

Applies to