IVsMSBuildTaskFileManager.Delete(String) Método

Definição

Exclui um arquivo em disco e o Remove do 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

Parâmetros

wszFilename
String

no O nome do arquivo a ser excluído.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro. Esse método retorna E_FAIL se o documento estiver no RDT e outra coisa tiver um bloqueio que não pode ser removido automaticamente.

Comentários

Assinatura COM

De vsshell90. idl:

HRESULT Delete([in] LPCOLESTR wszFilename);  

Aplica-se a