Udostępnij za pośrednictwem


IVsMSBuildTaskFileManager.GetFileLastChangeTime(String, FILETIME[]) Method

Definition

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.

pFileTime
FILETIME[]

[out] A FILETIME value specifying the last change time.

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  
);  

Applies to