IsolatedStorageFile.GetCreationTime(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the creation date and time of a specified file or directory.
public:
DateTimeOffset GetCreationTime(System::String ^ path);
public DateTimeOffset GetCreationTime(string path);
[System.Runtime.InteropServices.ComVisible(false)]
public DateTimeOffset GetCreationTime(string path);
member this.GetCreationTime : string -> DateTimeOffset
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.GetCreationTime : string -> DateTimeOffset
Public Function GetCreationTime (path As String) As DateTimeOffset
- path
- String
The path to the file or directory for which to obtain creation date and time information.
The creation date and time for the specified file or directory. This value is expressed in local time.
- Attributes
path
is a zero-length string, contains only white space, or contains one or more invalid characters defined by the GetInvalidPathChars() method.
path
is null
.
The isolated store has been closed.
The isolated store has been disposed.
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.
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: