RenamedEventArgs(WatcherChangeTypes, String, String, String) Constructor

Definition

Initializes a new instance of the RenamedEventArgs class.

public:
 RenamedEventArgs(System::IO::WatcherChangeTypes changeType, System::String ^ directory, System::String ^ name, System::String ^ oldName);
public RenamedEventArgs (System.IO.WatcherChangeTypes changeType, string directory, string name, string oldName);
new System.IO.RenamedEventArgs : System.IO.WatcherChangeTypes * string * string * string -> System.IO.RenamedEventArgs
Public Sub New (changeType As WatcherChangeTypes, directory As String, name As String, oldName As String)

Parameters

changeType
WatcherChangeTypes

One of the WatcherChangeTypes values.

directory
String

The name of the affected file or directory.

name
String

The name of the affected file or directory.

oldName
String

The old name of the affected file or directory.

Remarks

This class inherits from the FileSystemEventArgs class and extends it by adding an old name field to specify the previous name of the file or directory affected.

Applies to

See also