File |
public void MoveTo( string destFileName )
| Exception | Condition |
|---|---|
| InvalidDirectoryLocationException | Invalid destination directory passed. |
| DirectoryNotFoundException | The destination or source directory do not exist. |
| FileNotFoundException | The source file does not exist. |
| PathTooLongException | The specified path is greater than 248 characters. |
| IOException | File system error. |
| UnauthorizedAccessException | Attempt to copy a file to a different drive. |
| ArgumentException | The argument contains invalid characters. |
| ArgumentNullException | The argument is null. |
| NotSupportedException | The system does not support this operation. |