FileOperation component copies, moves, renames, or deletes a file system object.
For a list of all members of this type, see FileOperation Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Alvas.Windows.Forms.FileControls.FileOperation
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
This sample shows how to use FileOperation.
private void button1_Click(object sender, System.EventArgs e)
{
FileOperation fo = new FileOperation();
fo.Flags = Flags.None;
fo.Operation = Operation.Copy;
fo.Source = new string[1] {@"c:\Windows"};
fo.Destination = new string[1] {@"c:\Windows_copy"};
fo.Execute();
}
Namespace: Alvas.Windows.Forms.FileControls
Assembly: Alvas.Windows.Forms.FileControls (in Alvas.Windows.Forms.FileControls.dll)
FileOperation Members | Alvas.Windows.Forms.FileControls Namespace