Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileSystemWatcher.OnRenamed Method

Raises the Renamed event.

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


A RenamedEventArgs that contains the event data.


OnRenamed is called when a file or directory within the directory being monitored is renamed.

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

Notes to Inheritors:  When overriding OnRenamed in a derived class, be sure to call the base class's OnRenamed 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 | Renamed | RenamedEventArgs | RenamedEventHandler

© 2018 Microsoft