IVsMSBuildTaskFileManager.GetFileLastChangeTime(String, FILETIME[]) 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.
Gets the time of the last change to a file.
public:
int GetFileLastChangeTime(System::String ^ wszFilename, cli::array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime);
public:
int GetFileLastChangeTime(Platform::String ^ wszFilename, Platform::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime);
int GetFileLastChangeTime(std::wstring const & wszFilename, std::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> const & pFileTime);
public int GetFileLastChangeTime (string wszFilename, Microsoft.VisualStudio.OLE.Interop.FILETIME[] pFileTime);
abstract member GetFileLastChangeTime : string * Microsoft.VisualStudio.OLE.Interop.FILETIME[] -> int
Public Function GetFileLastChangeTime (wszFilename As String, pFileTime As FILETIME()) As Integer
Parameters
- wszFilename
- String
[in] The name of the file.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.
COM Signature
From vsshell90.idl:
HRESULT GetFileLastChangeTime(
[in] LPCOLESTR wszFilename,
[out, retval] FILETIME* pFileTime
);