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)

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;

Parameters

changeType
The WatcherChangeTypes to watch for.

Return Value

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

Remarks

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.

See Also

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