TCnFileSystemWatcher.WaitForChanged(TWatcherChangeTypes_Set) Method
A synchronous method that returns a structure that contains specific information on the change that occurred, given the type of change you want to monitor.
public function WaitForChanged(ChangeType: TWatcherChangeTypes_Set): _WaitForChangedResult; overload;
Parameters
- ChangeType
- Type: System.Void
The CNClrLib.Control.EnumTypes.TWatcherChangeTypes to watch for.
Return Value
Type: _WaitForChangedResult
A WaitForChangedResult that contains specific information on the change that occurred.
This method waits indefinitely until the first change occurs and then returns. This is the same as using WaitForChanged with the timeout parameter set to -1.
Note |
|---|
This method allows an event handler to be invoked to respond to file changes even if the EnableRaisingEvents property is set to false. |
