Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileSystemEventArgs Class

Provides data for the directory events: Changed, Created, Deleted.

For a list of all members of this type, see FileSystemEventArgs Members.

System.Object
   System.EventArgs
      System.IO.FileSystemEventArgs
         System.IO.RenamedEventArgs

[Visual Basic]
Public Class FileSystemEventArgs
   Inherits EventArgs
[C#]
public class FileSystemEventArgs : EventArgs
[C++]
public __gc class FileSystemEventArgs : public EventArgs
[JScript]
public class FileSystemEventArgs extends EventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The FileSystemEventArgs class is passed as a parameter to event handlers for these events:

The Changed event occurs when changes are made to the size, system attributes, last write time, last access time, or security permissions in a file or directory in the specified Path of a FileSystemWatcher.

The Created event occurs when a file or directory in the specified Path of a FileSystemWatcher is created.

The Deleted event occurs when a file or directory in the specified Path of a FileSystemWatcher is deleted. For more information, see FileSystemWatcher.

Requirements

Namespace: System.IO

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

FileSystemEventArgs Members | System.IO Namespace | Changed | Created | Deleted | FileSystemEventHandler | FileSystemWatcher | InternalBufferOverflowException | NotifyFilters | OnCreated | OnDeleted | Path | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft