NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RenamedEventArgs Constructor

Initializes a new instance of the RenamedEventArgs class.

[Visual Basic]
Public Sub New( _
   ByVal changeType As WatcherChangeTypes, _
   ByVal directory As String, _
   ByVal name As String, _
   ByVal oldName As String _
)
[C#]
public RenamedEventArgs(
   WatcherChangeTypes changeType,
   string directory,
   string name,
   string oldName
);
[C++]
public: RenamedEventArgs(
   WatcherChangeTypes changeType,
   String* directory,
   String* name,
   String* oldName
);
[JScript]
public function RenamedEventArgs(
   changeType : WatcherChangeTypes,
   directory : String,
   name : String,
   oldName : String
);

Parameters

changeType
One of the WatcherChangeTypes values.
directory
The name of the affected file or directory.
name
The name of the affected file or directory.
oldName
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.

See Also

RenamedEventArgs Class | RenamedEventArgs Members | System.IO Namespace | FileSystemEventArgs | WatcherChangeTypes