Export (0) Print
Expand All

FileChangeMonitor.LastModified Property

Gets a value that indicates the last time that a file that is being monitored was changed.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public abstract DateTimeOffset LastModified { get; }

Property Value

Type: System.DateTimeOffset
If multiple files are monitored, the last modified time of the most recently modified file; otherwise, the last time that the file that is being monitored was changed.

The value of the LastModified property is typically calculated during the initialization phase of a derived class.

To provide custom file change monitoring, you must override this method in a derived class.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft