VsMSBuildTaskFileManagerClass::GetFileLastChangeTime Method (String^, array<FILETIME>^)

 

Retrieves the time of the last change to the specified file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

public:
virtual int GetFileLastChangeTime(
	String^ wszFilename,
	array<FILETIME>^ pFileTime
)

Parameters

wszFilename
Type: System::String^

[in] The filename of the file for which to find the last change time.

pFileTime
Type: array<Microsoft.VisualStudio.OLE.Interop::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.

Return Value

Type: System::Int32

Returns S_OK if the method is successful, E_FAIL if the method fails.

Return to top
Show: