Click or drag to resize
FileCopy Method (String, String, Boolean)
Copies an existing file to a new file. Overwriting a file of the same name is allowed.

Namespace: CMS.AzureStorage
Assembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 12.0.0
Syntax
C#
public override void Copy(
	string sourceFileName,
	string destFileName,
	bool overwrite
)

Parameters

sourceFileName
Type: SystemString
Path to source file.
destFileName
Type: SystemString
Path to destination file.
overwrite
Type: SystemBoolean
If destination file should be overwritten.
Exceptions
ExceptionCondition
ArgumentNullExceptionsourceFileName or destFileName is null
ArgumentExceptionsourceFileName or destFileName is empty or contains invalid characters
PathTooLongExceptionsourceFileName or destFileName is too long
FileNotFoundExceptionsourceFileName does not exist
IOExceptiondestFileName already exists and overwrite is set to false
See Also