Click or drag to resize
FileSystemInfoLastWriteTime Property
Gets or sets the time when the current file or directory was last written to.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public DateTime LastWriteTime { get; set; }

Property Value

Type: DateTime
The time the current file was last written.
Exceptions
ExceptionCondition
IOExceptionRefresh cannot initialize the data.
Remarks

The value of the LastWriteTime property is pre-cached. To get the latest value, call the Refresh method.

This method may return an inaccurate value, because it uses native functions whose values may not be continuously updated by the operating system.

If the file described in the FileSystemInfo object does not exist, this property will return 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC), adjusted to local time.

See Also