Click or drag to resize

FileSystemInfoLastAccessTime Property

Gets or sets the time the current file or directory was last accessed.

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

Property Value

Type: DateTime
The time that the current file or directory was last accessed.
Exceptions
ExceptionCondition
IOException
Remarks

The value of the LastAccessTime 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