TCnFileSystemWatcher.NotifyFilter Property

Gets or sets the type of changes to watch for.

Namespace: CNClrLib.Component.FileSystemWatcher
published
 property NotifyFilter: TNotifyFilters_Set read GetNotifyFilter write SetNotifyFilter default [TNotifyFilters.nfFileName, TNotifyFilters.nfDirectoryName, TNotifyFilters.nfLastWrite];

Property Value

One of the CNClrLib.Control.EnumTypes.TNotifyFilters values. The default is the bitwise OR combination of nfLastWrite, nfFileName, and nfDirectoryName.

You can combine the members of the CNClrLib.Control.EnumTypes.TNotifyFilters 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.