← Interactive API Explorer
Namespace: System.IO

FileSystemEventArgs

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

Properties (3)

WatcherChangeTypes ChangeType
Gets the type of directory event that occurred.
Value: One of the WatcherChangeTypes values that represents the kind of change detected in the file system.
String FullPath
Gets the fully qualifed path of the affected file or directory.
Value: The path of the affected file or directory.
String Name
Gets the name of the affected file or directory.
Value: The name of the affected file or directory.

Methods (1)

FileSystemEventArgs(IO.WatcherChangeTypes,String,String)Constructor
Initializes a new instance of the FileSystemEventArgs class.
ParameterDescription
changeTypeOne of the WatcherChangeTypes values, which represents the kind of change detected in the file system.
directoryThe root directory of the affected file or directory.
nameThe name of the affected file or directory.