Xceed .NET Libraries Documentation
DoCopyTo Method (FileSystemItem)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemItem 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 item will be copied. Should not be a null reference (Nothing in Visual Basic).
true if existing items in the destination should be replaced; false otherwise.
Copies the item to another folder.
Syntax
'Declaration
 
Protected MustOverride Sub DoCopyTo( _

   ByVal session As FileSystemEventsSession, _

   ByVal destination As FileSystemItem, _

   ByVal replaceExistingFiles As Boolean _

) 
'Usage
 
Dim instance As FileSystemItem

Dim session As FileSystemEventsSession

Dim destination As FileSystemItem

Dim replaceExistingFiles As Boolean

 

instance.DoCopyTo(session, destination, replaceExistingFiles)
protected abstract 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 item will be copied. Should not be a null reference (Nothing in Visual Basic).
replaceExistingFiles
true if existing items in the destination should be replaced; false otherwise.
Remarks

If the destination does not exists, it should be created.

If an error occurs during the copying process of a file, the destination should not be automatically deleted.

If the destination is created during the process, the metadata of the source item should be applied to the destination by calling ApplyPropertiesTo(FileSystemItem).

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

FileSystemItem Class
FileSystemItem Members