VsMSBuildTaskFileManagerClass.Exists(String, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if the specified file exists in the running document table (RDT) or on disk.
public:
virtual int Exists(System::String ^ wszFilename, int fOnlyCheckOnDisk, [Runtime::InteropServices::Out] int % pfExists) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::Exists;
public:
virtual int Exists(System::String ^ wszFilename, int fOnlyCheckOnDisk, [Runtime::InteropServices::Out] int % pfExists);
virtual int Exists(std::wstring const & wszFilename, int fOnlyCheckOnDisk, [Runtime::InteropServices::Out] int & pfExists);
public virtual int Exists (string wszFilename, int fOnlyCheckOnDisk, out int pfExists);
abstract member Exists : string * int * int -> int
override this.Exists : string * int * int -> int
Public Overridable Function Exists (wszFilename As String, fOnlyCheckOnDisk As Integer, ByRef pfExists As Integer) As Integer
Parameters
- wszFilename
- String
[in] The name of the file to check for existence.
- fOnlyCheckOnDisk
- Int32
[in] Flag indicating check only on disk. Value is true
to check only on disk, not in the RDT.
- pfExists
- Int32
[out] Flag indicating that the file exists. Returns true
if the file exists.
Returns
Returns S_OK
if the method is successful, E_FAIL
if the method fails.