SetCreationTime() public abstract method

public abstract SetCreationTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void
コード例 #1
0
        public static void SetCreationTimeUtc(string path, DateTime creationTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true);
        }
コード例 #2
0
        public static void SetCreationTime(string path, DateTime creationTime)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetCreationTime(fullPath, creationTime, asDirectory: true);
        }