TCnFileSystemWatcher.Path Property

Gets or sets the path of the directory to watch.

Namespace: CNClrLib.Component.FileSystemWatcher
published
 property Path: String read GetPath write SetPath;

Property Value

Type: String

The path to monitor. The default is an empty string ("").

This is a fully qualified path to a directory. If the IncludeSubdirectories property is true, this directory is the root at which the system watches for changes; otherwise it is the only directory watched. To watch a specific file, set the Path property to the fully qualified, correct directory, and the Filter property to the file name.

The Path property supports Universal Naming Convention (UNC) paths.

Note

This property must be set before the component can watch for changes.