Share via


LastAccessTime Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public ReadOnly Property LastAccessTime As DateTime
public DateTime LastAccessTime { get; }
public:
property DateTime LastAccessTime {
    DateTime get ();
}
member LastAccessTime : DateTime with get
function get LastAccessTime () : DateTime

Property Value

Type: System. . :: . .DateTime
The time that the current file or directory was last accessed.

.NET Framework Security

See Also

Reference

FileSystemInfo Class

System.IO Namespace