LastWriteTime Property
Collapse the table of content
Expand the table of content

FileSystemInfo.LastWriteTime Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the time when the current file or directory was last written to.

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

public DateTime LastWriteTime { get; }

Property Value

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


Refresh cannot initialize the data.


The current operating system is not Microsoft Windows NT or later.

Version Notes

Windows Phone

 This member has a SecurityCriticalAttribute attribute. This attribute restricts this member to internal use. Application code that uses this member throws a MethodAccessException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft