This documentation is archived and is not being maintained.

FileSystemWatcher.OnChanged Method

Raises the Changed event.

[Visual Basic]
Protected Sub OnChanged( _
   ByVal e As FileSystemEventArgs _
protected void OnChanged(
 FileSystemEventArgs e
protected: void OnChanged(
 FileSystemEventArgs* e
protected function OnChanged(
   e : FileSystemEventArgs


A FileSystemEventArgs that contains the event data.


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.

Use the NotifyFilter property to restrict the number of events raised when the Changed event is handled.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

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


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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