←Select platform

WatcherRenamed Event

Summary

Occurs when a file or directory in the specified Path is renamed.

Syntax

C#
VB
C++
public event RenamedEventHandler WatcherRenamed 
  
Public Event WatcherRenamed As RenamedEventHandler 
public: 
event RenamedEventHandler^ WatcherRenamed 

Event Data

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.

PropertyDescription
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.
Remarks

Renaming the directory you are watching will not raise a notification. Notifications are only raised for entries inside the directory you are watching.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly