System Watcher. On Renamed(RenamedEventArgs) Method
Raises the Renamed event.
protected: void OnRenamed(System::IO::RenamedEventArgs ^ e);
protected void OnRenamed (System.IO.RenamedEventArgs e);
member this.OnRenamed : System.IO.RenamedEventArgs -> unit
Protected Sub OnRenamed (e As RenamedEventArgs)
OnRenamed is called when a file or directory within the directory being monitored is renamed. Its RenamedEventArgs argument contains information about the renaming operation, such as the type of change, the old and new path, and the old and new name. Note that its Name property may be null for renamed events if the FileSystemWatcher does not get matching old and new name events from the operating system.
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.