IVsMSBuildTaskFileManager::Delete Method (String^)
Visual Studio 2015
Deletes a file on disk and removes it from the RDT.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Parameters
- wszFilename
-
Type:
System::String^
[in] The name of the file to delete.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code. This method returns E_FAIL if the document is in the RDT and something else has a lock on it which cannot be removed automatically.
From vsshell90.idl:
HRESULT Delete([in] LPCOLESTR wszFilename);
Show: