IVsMSBuildTaskFileManager.Exists(String, Int32, Int32) Method

Definition

Determines if a file exists in the RDT or on disk.

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

Parameters

wszFilename
String

[in] The name of the file.

fOnlyCheckOnDisk
Int32

[in] A Boolean value. Set to true to restrict the check to files on disk.

pfExists
Int32

[out] A Boolean value. Set to true if the file exists.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell90.idl:

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

Applies to