RenamedEventArgs Class
Provides data for the Renamed event.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | RenamedEventArgs(WatcherChangeTypes, String^, String^, String^) | Initializes a new instance of the RenamedEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | ChangeType | Gets the type of directory event that occurred.(Inherited from FileSystemEventArgs.) |
![]() | FullPath | Gets the fully qualifed path of the affected file or directory.(Inherited from FileSystemEventArgs.) |
![]() | Name | Gets the name of the affected file or directory.(Inherited from FileSystemEventArgs.) |
![]() | OldFullPath | Gets the previous fully qualified path of the affected file or directory. |
![]() | OldName | Gets the old name of the affected file or directory. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
This class inherits from FileSystemEventArgs and extends it by adding an old name field and an old full path field to specify the previous name and full path of the affected file or directory.
The following example shows how to create a FileSystemWatcher to monitor file changes (creates, deletes, renames, changes) occurring on a disk drive. The example also shows how to properly receive error notifications.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


