IVsMSBuildTaskFileManager::Exists Method (String^, Int32, Int32)
Visual Studio 2015
Determines if a file exists in the RDT or on disk.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Parameters
- wszFilename
-
Type:
System::String^
[in] The name of the file.
- fOnlyCheckOnDisk
-
Type:
System::Int32
[in] A Boolean value. Set to true to restrict the check to files on disk.
- pfExists
-
Type:
System::Int32
[out] A Boolean value. Set to true if the file exists.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell90.idl:
HRESULT Exists(
[in] LPCOLESTR wszFilename,
[in] BOOL fOnlyCheckOnDisk,
[out, retval] BOOL *pfExists
);
Show: