FileSystemWatcher.WaitForChanged Method (WatcherChangeTypes)
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.
Assembly: System (in System.dll)
This method waits indefinitely until the first change occurs and then returns. This is the same as usingwith the timeout parameter set to -1.
This method allows an event handler to be invoked to respond to file changes even if the EnableRaisingEvents property is set to false.
In some systems, FileSystemWatcher reports changes to files using the short 8.3 file name format. For example, a change to "LongFileName.LongExtension" could be reported as "LongFi~.Lon".
Available since 1.1