BuildItemGroup.RemoveItem(BuildItem) Method

Definition

Removes the given BuildItem from this BuildItemGroup. If item is not in this group, does nothing.

public:
 void RemoveItem(Microsoft::Build::BuildEngine::BuildItem ^ itemToRemove);
public void RemoveItem (Microsoft.Build.BuildEngine.BuildItem itemToRemove);
member this.RemoveItem : Microsoft.Build.BuildEngine.BuildItem -> unit
Public Sub RemoveItem (itemToRemove As BuildItem)

Parameters

itemToRemove
BuildItem

The BuildItem to remove.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to