'Declaration Public Overloads Function MoveTo( _ ByVal events As FileSystemEvents, _ ByVal userData As Object, _ ByVal destinationFile As AbstractFile, _ ByVal replaceIfExists As Boolean _ ) As FileSystemItem
'Usage Dim instance As AbstractFile Dim events As FileSystemEvents Dim userData As Object Dim destinationFile As AbstractFile Dim replaceIfExists As Boolean Dim value As FileSystemItem value = instance.MoveTo(events, userData, destinationFile, replaceIfExists)
public FileSystemItem MoveTo( FileSystemEvents events, object userData, AbstractFile destinationFile, bool replaceIfExists )
Parameters
- events
- A FileSystemEvents object that will be used to raise events. Cannot be a null reference (Nothing in Visual Basic).
- userData
- Opaque data that will be passed back to the event handler when an event is raised.
- destinationFile
- An AbstractFile object into which the contents of the item will be moved. Cannot be a null reference (Nothing in Visual Basic).
- replaceIfExists
- true if existing items in the destination should be replaced; false otherwise.
Return Value
A FileSystemItem object that represents the newly moved item.