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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.