System.IO.FileSystem.GetLastWriteTime C# (CSharp) Method

GetLastWriteTime() public abstract method

public abstract GetLastWriteTime ( string fullPath ) : DateTimeOffset
fullPath string
return DateTimeOffset
        public abstract DateTimeOffset GetLastWriteTime(string fullPath);
        public abstract void SetLastWriteTime(string fullPath, DateTimeOffset time, bool asDirectory);

Usage Example

示例#1
0
 public static DateTime GetLastWriteTimeUtc(string path)
 => FileSystem.GetLastWriteTime(Path.GetFullPath(path)).UtcDateTime;
All Usage Examples Of System.IO.FileSystem::GetLastWriteTime