public abstract SetCreationTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void | ||
fullPath | string | |
time | DateTimeOffset | |
asDirectory | bool | |
return | void |
public static void SetCreationTimeUtc(string path, DateTime creationTimeUtc) { string fullPath = Path.GetFullPath(path); FileSystem.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true); }
public static void SetCreationTime(string path, DateTime creationTime) { string fullPath = Path.GetFullPath(path); FileSystem.SetCreationTime(fullPath, creationTime, asDirectory: true); }