| C# | Visual Basic |
public class FileSystemEventArgs
Public Class FileSystemEventArgs
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| FileSystemEventArgs(WatcherChangeTypes, String, String) |
Initializes a new instance of the FileSystemEventArgs class.
| |
| ChangeType |
Gets the type of directory event that occurred.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FullPath |
Gets the fully qualifed path of the affected file or directory.
| |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Name |
Gets the name of the affected file or directory.
| |
| ToString()()() | (Inherited from Object.) |
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.
| Object | ||
| FileSystemEventArgs | ||
| RenamedEventArgs | ||