Occurs when a file or directory in the specified Path is renamed.
public event RenamedEventHandler WatcherRenamed
Public Event WatcherRenamed As RenamedEventHandler
public:
event RenamedEventHandler^ WatcherRenamed
The event handler receives an argument of type RenamedEventArgs containing data related to this event. The following RenamedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ChangeType (Inherited from System.IO.FileSystemEventArgs) | Gets the type of directory event that occurred. |
FullPath (Inherited from System.IO.FileSystemEventArgs) | Gets the fully qualifed path of the affected file or directory. |
Name (Inherited from System.IO.FileSystemEventArgs) | Gets the name of the affected file or directory. |
OldFullPath | Gets the previous fully qualified path of the affected file or directory. |
OldName | Gets the old name of the affected file or directory. |
Renaming the directory you are watching will not raise a notification. Notifications are only raised for entries inside the directory you are watching.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET