Returns the creation date and time of a specified file or directory.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.String
The path to the file or directory for which to obtain creation date and time information.
Return ValueType: System.DateTimeOffset
The creation date and time for the specified file or directory. 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 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.