FileChangeMonitor::LastModified Property

.NET Framework (current version)
 

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:
property DateTimeOffset LastModified {
	virtual DateTimeOffset get() abstract;
}

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
Available since 4.0
Return to top
Show: