RemoveFile Method
Collapse the table of content
Expand the table of content

VCFile.RemoveFile Method (Object)

 

Removes a file from the current project or folder.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

void RemoveFile(
	object File
)

Parameters

File
Type: System.Object

Required. The file to remove.

RemoveFile can be called on a VCProject or VCFilter object. Either removes the file from both its current folder, if one exists, and the project. RemoveFile does not delete the file from disk.

Return to top
Show:
© 2016 Microsoft