Alvas.FileControls Class Library

FileOperation Class

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

[Visual Basic]
Public Class FileOperation
    Inherits Component
[C#]
public class FileOperation : Component

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

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();
}
 

Requirements

Namespace: Alvas.Windows.Forms.FileControls

Assembly: Alvas.Windows.Forms.FileControls (in Alvas.Windows.Forms.FileControls.dll)

See Also

FileOperation Members | Alvas.Windows.Forms.FileControls Namespace