VsMSBuildTaskFileManagerClass::Exists Method (String^, Int32, Int32)
Visual Studio 2015
Determines if the specified file exists in the running document table (RDT) or on disk.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
public: virtual int Exists( String^ wszFilename, int fOnlyCheckOnDisk, [OutAttribute] int% pfExists )
Parameters
- wszFilename
-
Type:
System::String^
[in] The name of the file to check for existence.
- fOnlyCheckOnDisk
-
Type:
System::Int32
[in] Flag indicating check only on disk. Value is true to check only on disk, not in the RDT.
- pfExists
-
Type:
System::Int32
[out] Flag indicating that the file exists. Returns true if the file exists.
Return Value
Type: System::Int32Returns S_OK if the method is successful, E_FAIL if the method fails.
Show: