VsMSBuildTaskFileManagerClass.GetFileLastChangeTime 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.
Retrieves the time of the last change to the specified file.
public:
virtual int GetFileLastChangeTime(System::String ^ wszFilename, cli::array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::GetFileLastChangeTime;
public:
virtual int GetFileLastChangeTime(System::String ^ wszFilename, cli::array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime);
public:
virtual int GetFileLastChangeTime(Platform::String ^ wszFilename, Platform::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::GetFileLastChangeTime;
virtual int GetFileLastChangeTime(std::wstring const & wszFilename, std::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> const & pFileTime);
public virtual int GetFileLastChangeTime (string wszFilename, Microsoft.VisualStudio.OLE.Interop.FILETIME[] pFileTime);
abstract member GetFileLastChangeTime : string * Microsoft.VisualStudio.OLE.Interop.FILETIME[] -> int
override this.GetFileLastChangeTime : string * Microsoft.VisualStudio.OLE.Interop.FILETIME[] -> int
Public Overridable Function GetFileLastChangeTime (wszFilename As String, pFileTime As FILETIME()) As Integer
Parameters
- wszFilename
- String
[in] The filename of the file for which to find the last change time.
- pFileTime
- FILETIME[]
[out] The time of the last change to the specified file. If the file is open in memory, returns the time of the last edit as reported by IVsLastChangeTimeProvider::GetLastChangeTime on the open document. If the file is not open, returns the last change time of the file on disk.
Returns
Returns S_OK
if the method is successful, E_FAIL
if the method fails.