Project.RemoveItems Method (IEnumerable<ProjectItem>)

 

Removes all the given items from the project, unless they originate from an imported project.

Namespace:   Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public void RemoveItems(
	IEnumerable<ProjectItem> items
)

Parameters

items
Type: System.Collections.Generic.IEnumerable<ProjectItem>

The items to be removed.

If an item originates from an imported project, it is simply skipped.

.NET Framework
Available since 4.0
Return to top
Show: