VCFile.RemoveFile(Object) Method

Definition

Removes a file from the current project or folder.

public:
 void RemoveFile(System::Object ^ File);
public:
 void RemoveFile(Platform::Object ^ File);
void RemoveFile(winrt::Windows::Foundation::IInspectable const & File);
[System.Runtime.InteropServices.DispId(417)]
public void RemoveFile (object File);
[<System.Runtime.InteropServices.DispId(417)>]
abstract member RemoveFile : obj -> unit
Public Sub RemoveFile (File As Object)

Parameters

File
Object

Required. The file to remove.

Attributes

Remarks

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.

Applies to