SetLastAccessTime() public abstract méthode

public abstract SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
Résultat void
Exemple #1
0
 public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
 => FileSystem.SetLastAccessTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: false);
Exemple #2
0
        public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: true);
        }
Exemple #3
0
 public static void SetLastAccessTime(string path, DateTime lastAccessTime)
 => FileSystem.SetLastAccessTime(Path.GetFullPath(path), lastAccessTime, asDirectory: false);
Exemple #4
0
        public static void SetLastAccessTime(string path, DateTime lastAccessTime)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastAccessTime(fullPath, lastAccessTime, asDirectory: true);
        }