NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileSystemWatcher.WaitForChanged (WatcherChangeTypes, Int32)

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;

Parameters

changeType
The WatcherChangeTypes to watch for.
timeout
The time in milliseconds to wait before timing out.

Return Value

The structure for the specified type of change that you are watching for.

Remarks

This method waits until a change occurs or it has timed out. A value of-1 for the timeout parameter means wait indefinitely.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher.WaitForChanged Overload List | WaitForChangedResult