A synchronous method that returns a structure for the specified type of change that you wish to monitor.
[Visual Basic] Overloads Public Function WaitForChanged( _ ByVal changeType As WatcherChangeTypes _ ) As WaitForChangedResult [C#] public WaitForChangedResult WaitForChanged( WatcherChangeTypes changeType ); [C++] public: WaitForChangedResult WaitForChanged( WatcherChangeTypes changeType ); [JScript] public function WaitForChanged( changeType : WatcherChangeTypes ) : WaitForChangedResult;
The structure for the specified type of change that you are watching for.
This method waits indefinately until the first change occurs and then returns. This is the same as using WaitForChanged with the timeout parameter set to-1.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher.WaitForChanged Overload List | WaitForChangedResult