Share via


VsMSBuildTaskFileManagerClass.GetFileLastChangeTime Method

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)

Syntax

'Declaration
Public Overridable Function GetFileLastChangeTime ( _
    wszFilename As String, _
    <OutAttribute> pFileTime As FILETIME() _
) As Integer
public virtual int GetFileLastChangeTime(
    string wszFilename,
    FILETIME[] pFileTime
)
public:
virtual int GetFileLastChangeTime(
    [InAttribute] String^ wszFilename, 
    [OutAttribute] array<FILETIME>^ pFileTime
)
abstract GetFileLastChangeTime : 
        wszFilename:string * 
        pFileTime:FILETIME[] byref -> int  
override GetFileLastChangeTime : 
        wszFilename:string * 
        pFileTime:FILETIME[] byref -> int
public function GetFileLastChangeTime(
    wszFilename : String, 
    pFileTime : FILETIME[]
) : int

Parameters

  • wszFilename
    Type: 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: Int32
Returns S_OK if the method is successful, E_FAIL if the method fails.

Implements

IVsMSBuildTaskFileManager.GetFileLastChangeTime(String, array<FILETIME[])

.NET Framework Security

See Also

Reference

VsMSBuildTaskFileManagerClass Class

Microsoft.VisualStudio.Shell.Interop Namespace