Raises the System.IO.FileSystemWatcher.Renamed event.
[Visual Basic] Overridable Protected Sub OnRenamed( _ ByVal e As RenamedEventArgs _ ) [C#] protected virtual void OnRenamed( RenamedEventArgs e ); [C++] protected: virtual void OnRenamed( RenamedEventArgs* e ); [JScript] protected function OnRenamed( e : RenamedEventArgs );
OnRenamed is called when a file or directory within the directory being monitored is renamed.
Raising an event invokes the event-handling method through a delegate. For more information, see TBD.
Notes to Inheritors: When overriding OnRenamed in a derived class, be sure to call the base class's OnRenamed method.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | System.IO.FileSystemWatcher.Renamed | RenamedEventArgs | RenamedEventHandler