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)

'Declaration
Public ReadOnly Property LastWriteTime As DateTime

Property Value

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

ExceptionCondition
IOException

Refresh cannot initialize the data.

PlatformNotSupportedException

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

Show:
© 2017 Microsoft