Share via


LastWriteTime 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 when the current file or directory was last written to.

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

Syntax

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

Property Value

Type: System. . :: . .DateTime
The time the current file was last written.

.NET Framework Security

See Also

Reference

FileSystemInfo Class

System.IO Namespace