File |
| Exception | Condition |
|---|---|
| InvalidDirectoryLocationException | The directory specified is invalid. |
| PathTooLongException | The path is greater than 248 characters. |
| UnauthorizedAccessException | The user does not have access to the specified directory. |
| ArgumentException | The path specified contains invalid characters. |
| ArgumentNullException | The path is null. |
| SecurityException | Access denied to this file. |
| NotSupportedException | The system does not support access to this file type. |