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: