Click or drag to resize
FileCopy Method (String, String)
Copies an existing file to a new file. Overwriting a file of the same name is not 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
)

Parameters

sourceFileName
Type: SystemString
Path to source file.
destFileName
Type: SystemString
Path to destination file.
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
See Also