Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RenamedEventArgs Constructor
Collapse the table of content
Expand the table of content

RenamedEventArgs Constructor

Initializes a new instance of the RenamedEventArgs class.

[Visual Basic]
Public Sub New( _
   ByVal changeType As WatcherChangeTypes, _
   ByVal directory As String, _
   ByVal name As String, _
   ByVal oldName As String _
public RenamedEventArgs(
   WatcherChangeTypes changeType,
 string directory,
 string name,
 string oldName
public: RenamedEventArgs(
   WatcherChangeTypes changeType,
 String* directory,
 String* name,
 String* oldName
public function RenamedEventArgs(
   changeType : WatcherChangeTypes,
 directory : String,
 name : String,
 oldName : String


One of the WatcherChangeTypes values.
The name of the affected file or directory.
The name of the affected file or directory.
The old name of the affected file or directory.


This class inherits from the FileSystemEventArgs class and extends it by adding an old name field to specify the previous name of the file or directory affected.


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

RenamedEventArgs Class | RenamedEventArgs Members | System.IO Namespace | FileSystemEventArgs | WatcherChangeTypes

© 2015 Microsoft