TCnFileSystemWatcher.IncludeSubdirectories Property

Gets or sets a value indicating whether subdirectories within the specified path should be monitored.

Namespace: CNClrLib.Component.FileSystemWatcher
published
 property IncludeSubdirectories: Boolean read GetIncludeSubdirectories write SetIncludeSubdirectories default False;

Property Value

Type: Boolean

true if you want to monitor subdirectories; otherwise, false. The default is false.

Set IncludeSubdirectories to true when you want to watch for change notifications for files and directories contained within the directory specified through the Path property, and its subdirectories. Setting the IncludeSubdirectories property to false helps reduce the number of notifications sent to the internal buffer.