VsMSBuildTaskFileManagerClass::Delete Method (String^)
Visual Studio 2015
Deletes the specified file on disk and removes it from the running document table (RDT).
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Parameters
- wszFilename
-
Type:
System::String^
[in] The filename of the file to be deleted.
Return Value
Type: System::Int32Returns S_OK if the method is successful; otherwise, returns E_FAIL if the document is in the RDT and something else has a lock on it which cannot be removed automatically.
Show: