IVsMSBuildTaskFileManager.GetFileLastChangeTime Method

Gets the time of the last change to a file.

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

Syntax

‘선언
Function GetFileLastChangeTime ( _
    wszFilename As String, _
    <OutAttribute> pFileTime As FILETIME() _
) As Integer
‘사용 방법
Dim instance As IVsMSBuildTaskFileManager
Dim wszFilename As String
Dim pFileTime As FILETIME()
Dim returnValue As Integer

returnValue = instance.GetFileLastChangeTime(wszFilename, _
    pFileTime)
int GetFileLastChangeTime(
    string wszFilename,
    FILETIME[] pFileTime
)
int GetFileLastChangeTime(
    [InAttribute] String^ wszFilename, 
    [OutAttribute] array<FILETIME>^ pFileTime
)
abstract GetFileLastChangeTime : 
        wszFilename:string * 
        pFileTime:FILETIME[] byref -> int 
function GetFileLastChangeTime(
    wszFilename : String, 
    pFileTime : FILETIME[]
) : int

Parameters

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsMSBuildTaskFileManager Interface

IVsMSBuildTaskFileManager Members

Microsoft.VisualStudio.Shell.Interop Namespace