Moves a specified file to a new location, providing the option to specify a new file name.
Namespace: CMS.AzureStorageAssembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 13.0.131
Syntaxpublic override void Move(
string sourceFileName,
string destFileName
)
Parameters
- sourceFileName
- Type: SystemString
Source file name. - destFileName
- Type: SystemString
Destination file name.
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 | Both sourceFileName and destFileName lead to the same file |
See Also