'Declaration Public Overloads Function CopyTo( _ ByVal destinationFile As AbstractFile, _ ByVal replaceIfExists As Boolean _ ) As FileSystemItem
'Usage Dim instance As AbstractFile Dim destinationFile As AbstractFile Dim replaceIfExists As Boolean Dim value As FileSystemItem value = instance.CopyTo(destinationFile, replaceIfExists)
public FileSystemItem CopyTo( AbstractFile destinationFile, bool replaceIfExists )
Parameters
- destinationFile
- An AbstractFile object that represents the file to which the current file's data must be copied. Cannot be a null reference (Nothing in Visual Basic).
- replaceIfExists
- true if the destination file should be replaced if it exists; false otherwise.
Return Value
A reference to a FileSystemItem object that represents the destination file.