Export (0) Print
Expand All

ProjectInstance.RemoveItem Method

.NET Framework 4.6 and 4.5

Removes an item from the project, if present. Returns true if it was present, false otherwise.

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

public bool RemoveItem(
	ProjectItemInstance item


Type: Microsoft.Build.Execution.ProjectItemInstance

The item to be removed.

Return Value

Type: System.Boolean
Returns true if the item was present before removal; false otherwise.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft