IsolatedStorageFile.GetLastWriteTime(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 date and time a specified file or directory was last written to.
public:
DateTimeOffset GetLastWriteTime(System::String ^ path);
public DateTimeOffset GetLastWriteTime (string path);
[System.Runtime.InteropServices.ComVisible(false)]
public DateTimeOffset GetLastWriteTime (string path);
member this.GetLastWriteTime : string -> DateTimeOffset
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.GetLastWriteTime : string -> DateTimeOffset
Public Function GetLastWriteTime (path As String) As DateTimeOffset
- path
- String
The path to the file or directory for which to obtain last write date and time information.
The date and time that the specified file or directory was last written to. 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 |
.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: