次の方法で共有


IVsMSBuildTaskFileManager.Delete(String) Method

Definition

Deletes a file on disk and removes it from the RDT.

public:
 int Delete(System::String ^ wszFilename);
public:
 int Delete(Platform::String ^ wszFilename);
int Delete(std::wstring const & wszFilename);
public int Delete (string wszFilename);
abstract member Delete : string -> int
Public Function Delete (wszFilename As String) As Integer

Parameters

wszFilename
String

[in] The name of the file to delete.

Returns

If 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.

Remarks

COM Signature

From vsshell90.idl:

HRESULT Delete([in] LPCOLESTR wszFilename);  

Applies to