Udostępnij za pośrednictwem


Project.RemoveItems(IEnumerable<ProjectItem>) Method

Definition

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.

Applies to