Returns the date and time a specified file or directory was last written to.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.String
The path to the file or directory for which to obtain last write date and time information.
Return ValueType: System.DateTimeOffset
The date and time that the specified file or directory was last written to. This value is expressed in local time.
path is a zero-length string, contains only white space, or contains one or more invalid characters defined by the Path.GetInvalidPathChars method.
path is null.
The isolated store has been closed.
The isolated store has been disposed.
The isolated store has been removed.
Isolated storage is disabled.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.