Share via


ProjectItem.Remove Method

Removes the project item from the collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Sub Remove
'Usage
Dim instance As ProjectItem

instance.Remove()
void Remove()
void Remove()
function Remove()

Remarks

For the ProjectItem object, removes a project item from the project. If ProjectItem.ProjectItems is not nulla null reference (Nothing in Visual Basic) — that is, if there's a subdirectory — then Remove removes all of the project items in that directory and its subdirectories.

.NET Framework Security

See Also

Reference

ProjectItem Interface

ProjectItem Members

EnvDTE Namespace