LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
WatcherRenamed Event
See Also 
Leadtools.WinForms Namespace > RasterThumbnailBrowser Class : WatcherRenamed Event



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

Syntax

Visual Basic (Declaration) 
Public Event WatcherRenamed As RenamedEventHandler
Visual Basic (Usage)Copy Code
Dim instance As RasterThumbnailBrowser
Dim handler As RenamedEventHandler
 
AddHandler instance.WatcherRenamed, handler
C# 
public event RenamedEventHandler WatcherRenamed
C++/CLI 
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: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also