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 );
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.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | System.IO.FileSystemWatcher.Changed | ChangedFilter | FileSystemEventArgs | FileSystemEventHandler