VsMSBuildTaskFileManagerClass.Delete(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes the specified file on disk and removes it from the running document table (RDT).
public:
virtual int Delete(System::String ^ wszFilename) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::Delete;
public:
virtual int Delete(System::String ^ wszFilename);
public:
virtual int Delete(Platform::String ^ wszFilename) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::Delete;
virtual int Delete(std::wstring const & wszFilename);
public virtual int Delete (string wszFilename);
abstract member Delete : string -> int
override this.Delete : string -> int
Public Overridable Function Delete (wszFilename As String) As Integer
Parameters
- wszFilename
- String
[in] The filename of the file to be deleted.
Returns
Returns 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.