Xceed .NET Libraries Documentation
DoCopyTo Method (AbstractFile)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > AbstractFile Class : DoCopyTo Method
A reference to a FileSystemEventsSession object which is responsible for raising all events that occur during the process.
An FileSystemItem object into which the file will be copied. Cannot be a null reference (Nothing in Visual Basic).
true if existing items in the destination should be replaced; false otherwise.
Copies the file into the destination.
Syntax
'Declaration
 
Protected Overrides Sub DoCopyTo( _
   ByVal session As FileSystemEventsSession, _
   ByVal destination As FileSystemItem, _
   ByVal replaceExistingFiles As Boolean _
) 
'Usage
 
Dim instance As AbstractFile
Dim session As FileSystemEventsSession
Dim destination As FileSystemItem
Dim replaceExistingFiles As Boolean
 
instance.DoCopyTo(session, destination, replaceExistingFiles)
protected override void DoCopyTo( 
   FileSystemEventsSession session,
   FileSystemItem destination,
   bool replaceExistingFiles
)

Parameters

session
A reference to a FileSystemEventsSession object which is responsible for raising all events that occur during the process.
destination
An FileSystemItem object into which the file will be copied. Cannot be a null reference (Nothing in Visual Basic).
replaceExistingFiles
true if existing items in the destination should be replaced; false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AbstractFile Class
AbstractFile Members
Base Implementation in DoCopyTo