Mono Class Library: System.IO.File Overview | MembersSystem.IO.File.SetCreationTime Method |
Sets the creation date and time for the specified file. [Edit]
|
Type Reason System.Security.Permissions.FileIOPermission [Edit] Requires permission to write to the specified file or directory. See System.Security.Permissions.FileIOPermissionAccess.Write.
Type Reason ArgumentException path is a zero-length string, contains only white space, or contains one or more implementation-specific invalid characters. [Edit] ArgumentOutOfRangeException creationTime specifies a value outside the range of date/times permitted for this operation. [Edit] ArgumentNullException path is null. [Edit] System.IO.FileNotFoundException path was not found. [Edit] System.IO.IOException An I/O error occurred while performing the operation. [Edit] System.IO.PathTooLongException The length of path or the absolute path information for path exceeds the system-defined maximum length. [Edit] UnauthorizedAccessException The caller does not have the required permission. [Edit]
The path argument is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory.
Note: To obtain the current working directory, see Directory.GetCurrentDirectory.On platforms that do not support this feature, this method has no effect. If this feature is supported, the range of dates that is valid for this operation is implementation-specific.
[Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0