This documentation is archived and is not being maintained.

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]
Public Enum WatcherChangeTypes
public enum WatcherChangeTypes
__value public enum WatcherChangeTypes
enum WatcherChangeTypes


Each WatcherChangeTypes member is associated with an event in FileSystemWatcher. For more information on the events, see Created, Deleted, Changed, and Renamed.


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


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