Gets or sets the type of changes to watch for.
| C# | Visual Basic |
public NotifyFilters NotifyFilter { get; set; }
Public Property NotifyFilter As NotifyFilters
One of the NotifyFilters values.
The default is the bitwise OR combination of LastWrite, FileName, and DirectoryName.
You can combine the members of the NotifyFilters enumeration to watch for more than one type of change at a time.
For example, you can watch for changes in size of a file, and for changes in the LastWrite time.
This raises an event anytime there is a change in file or folder size, or a change in the LastWrite time of the file or folder.