Compartilhar via


VsMSBuildTaskFileManagerClass.Delete(String) Method

Definition

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.

Implements

Applies to