IVsMSBuildTaskFileManager::GetFileLastChangeTime Method (String^, array<FILETIME>^)
Visual Studio 2015
Gets the time of the last change to a file.
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.
- pFileTime
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::FILETIME>^
[out] A FILETIME value specifying the last change time.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
If open in memory, then this is the time of the last edit as reported via GetLastChangeTime on the open document. If the file is not open, then the last change time of the file on disk is returned.
From vsshell90.idl:
HRESULT GetFileLastChangeTime(
[in] LPCOLESTR wszFilename,
[out, retval] FILETIME* pFileTime
);
Show: