IVsMSBuildTaskFileManager.Exists(String, Int32, Int32) Método

Definição

Determina se um arquivo existe no RDT ou no disco.

public:
 int Exists(System::String ^ wszFilename, int fOnlyCheckOnDisk, [Runtime::InteropServices::Out] int % pfExists);
int Exists(std::wstring const & wszFilename, int fOnlyCheckOnDisk, [Runtime::InteropServices::Out] int & pfExists);
public int Exists (string wszFilename, int fOnlyCheckOnDisk, out int pfExists);
abstract member Exists : string * int * int -> int
Public Function Exists (wszFilename As String, fOnlyCheckOnDisk As Integer, ByRef pfExists As Integer) As Integer

Parâmetros

wszFilename
String

no O nome do arquivo.

fOnlyCheckOnDisk
Int32

no Um valor booliano. Defina como true para restringir a verificação de arquivos em disco.

pfExists
Int32

fora Um valor booliano. Defina como true se o arquivo existir.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De vsshell90. idl:

HRESULT Exists(  
    [in] LPCOLESTR wszFilename,  
    [in] BOOL fOnlyCheckOnDisk,  
    [out, retval] BOOL *pfExists  
);  

Aplica-se a