WatcherChangeTypes Enumeration
Changes that might occur to a file or directory.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> Public Enum WatcherChangeTypes [C#] [Flags] [Serializable] public enum WatcherChangeTypes [C++] [Flags] [Serializable] __value public enum WatcherChangeTypes [JScript] public Flags Serializable enum WatcherChangeTypes
Remarks
Each WatcherChangeTypes member is associated with an event in FileSystemWatcher. For more information on the events, see Created, Deleted, Changed, and Renamed.
Members
| Member name | Description | Value |
|---|---|---|
| All | The creation, deletion, change, or renaming of a file or folder. | 15 |
| Changed | The change of a file or folder. The types of changes include: changes to size, attributes, security settings, last write, and last access time. | 4 |
| Created | The creation of a file or folder. | 1 |
| Deleted | The deletion of a file or folder. | 2 |
| Renamed | The renaming of a file or folder. | 8 |
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
System.IO Namespace | Changed | Created | Deleted | FileSystemEventArgs | FileSystemEventHandler | FileSystemWatcher | InternalBufferOverflowException | NotifyFilters | Renamed | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult