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 Changed Event

Occurs when a file or directory is changed.

The following declaration shows the syntax for a method that handles the Changed event.

[Visual Basic]
Private Sub FileSystemWatcherName_Changed( _
   ByVal sender As Object, _
   ByVal e As FileSystemEventArgs _
)
[C#]
private void FileSystemWatcherName_Changed(
   object sender,
   FileSystemEventArgs e
);
[C++]
private: void FileSystemWatcherName_Changed(
   Object* sender,
   FileSystemEventArgs* e
);
[JScript]
private FileSystemWatcherName_Changed(
   sender : Object,
   e : FileSystemEventArgs
);

Parameters

sender
The source of the event.
e
A FileSystemEventArgs that contains the event data. The following FileSystemEventArgs properties provide information specific to this event.
Property Description
ChangeType
Gets one of the WatcherChangeTypes values.
FullPath
Gets the fully qualifed path of the affected file or directory.
Name
Gets the name of the affected file or directory.

Remarks

The System.IO.FileSystemWatcher.Changed event is raised when changes are made to the size, system attributes, last write time, last access time, or security permissions of a file or directory in the directory being monitored.

Use ChangedFilter to restrict the number of notifications raised when this event is handled.

See Also

FileSystemWatcher Class | FileSystemWatcher MembersTopic | System.IO Namespace | FileSystemWatcher.ChangedFilter | FileSystemWatcher.OnChanged | FileSystemEventArgs | FileSystemEventHandler