System.IO.IsolatedStorage.IsolatedStorageFile.GetCreationTime Method

Returns the creation date and time of a specified file or directory.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public DateTimeOffset GetCreationTime (string path)

Parameters

path
The path to the file or directory for which to obtain creation date and time information.

Returns

The creation date and time for the specified file or directory. This value is expressed in local time.

Remarks

If the file described by path does not exist, this method returns 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC), adjusted to local time.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0