FileCopy Method (String, String) |
Copies an existing file to a new file. Overwriting a file of the same name is not allowed.
Namespace: CMS.AzureStorageAssembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 13.0.131
Syntax public override void Copy(
string sourceFileName,
string destFileName
)
Parameters
- sourceFileName
- Type: SystemString
Path to source file. - destFileName
- Type: SystemString
Path to destination file.
Exceptions Exception | Condition |
---|
ArgumentNullException | sourceFileName or destFileName is null |
ArgumentException | sourceFileName or destFileName is empty or contains invalid characters |
PathTooLongException | sourceFileName or destFileName is too long |
FileNotFoundException | sourceFileName does not exist |
IOException | destFileName already exists |
See Also