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!

FileSystemEventArgs Constructor

Initializes a new instance of the FileSystemEventArgs class.

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

Parameters

changeType
One of the WatcherChangeTypes values.
directory
The root directory of the affected file or directory.
name
The name of the affected file or directory.

Remarks

The FileSystemWatcher component will create and call an event handler passing in this object, specifying the type of change and the affected file or directory.

See Also

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