FileCopy(String, String) Method |
public static void Copy( string sourceFileName, string destFileName )
| Exception | Condition |
|---|---|
| InvalidDirectoryLocationException | Invalid Directory location specified for source or destination. |
| IOException | destFileName exists or a file system error has occurred. |
| DirectoryNotFoundException | Specified directory for source or destination does not exist. |
| PathTooLongException | Specified path for source or destination is greater than 248 characters. |
| FileNotFoundException | The source file does not exist. |
| UnauthorizedAccessException | Source or destination access is not provided to the user. |
| ArgumentException | sourceFileName or destFileName contain invalid characters. |
| ArgumentNullException | sourceFileName or destFileName is null. |
| NotSupportedException | sourceFileName or destFileName is of invalid format. |