Project.RemoveItems(IEnumerable<ProjectItem>) 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.
Removes all the specified items from the project. Items that are not associated with this project are skipped.
public:
void RemoveItems(System::Collections::Generic::IEnumerable<Microsoft::Build::Evaluation::ProjectItem ^> ^ items);
public void RemoveItems (System.Collections.Generic.IEnumerable<Microsoft.Build.Evaluation.ProjectItem> items);
member this.RemoveItems : seq<Microsoft.Build.Evaluation.ProjectItem> -> unit
Public Sub RemoveItems (items As IEnumerable(Of ProjectItem))
Parameters
- items
- IEnumerable<ProjectItem>
The items to be removed.
Remarks
Removing one item could cause the backing XML to be expanded, which could zombie (disassociate) the next item. To make this case easy for the caller, if an item is not associated with this project it is simply skipped.