A synchronous method with the type of change and the amount of time to wait for a change specified, 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, _ ByVal timeout As Integer _ ) As WaitForChangedResult [C#] public WaitForChangedResult WaitForChanged( WatcherChangeTypes changeType, int timeout ); [C++] public: WaitForChangedResult WaitForChanged( WatcherChangeTypes changeType, int timeout ); [JScript] public function WaitForChanged( changeType : WatcherChangeTypes, timeout : int ) : WaitForChangedResult;
The structure for the specified type of change that you are watching for.
This method waits until a change occurs or it has timed out. A value of-1 for the timeout parameter means wait indefinitely.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher.WaitForChanged Overload List | WaitForChangedResult