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.OnChanged

Raises the System.IO.FileSystemWatcher.Changed event.

[Visual Basic]
Overridable Protected Sub OnChanged( _
   ByVal e As FileSystemEventArgs _
)
[C#]
protected virtual void OnChanged(
   FileSystemEventArgs e
);
[C++]
protected: virtual void OnChanged(
   FileSystemEventArgs* e
);
[JScript]
protected function OnChanged(
   e : FileSystemEventArgs
);

Parameters

e
A FileSystemEventArgs that contains the event data.

Remarks

OnChanged is called 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.

Raising an event invokes the event-handling method through a delegate. For more information, see TBD.

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

Notes to Inheritors: When overriding OnChanged in a derived class, be sure to call the base class's OnChanged method.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | System.IO.FileSystemWatcher.Changed | ChangedFilter | FileSystemEventArgs | FileSystemEventHandler