Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FileSystemEventArgs Constructor
Collapse the table of content
Expand the table of content

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, which represents the kind of change detected in the file system.
directory
The root directory of the affected file or directory.
name
The name of the affected file or directory.

Requirements

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

Show:
© 2015 Microsoft