次の方法で共有


VsMSBuildTaskFileManagerClass.Exists(String, Int32, Int32) Method

Definition

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.

Implements

Applies to