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.
| Parameter | Description |
|---|---|
| changeType | One of the WatcherChangeTypes values, which represents the kind of change detected in the file system. |
| directory | The root directory of the affected file or directory. |
| name | The name of the affected file or directory. |