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