Initializes a new instance of the FileSystemWatcher class, given the specified directory and type of files to monitor.
[Visual Basic] Overloads Public Sub New( _ ByVal path As String, _ ByVal filter As String _ ) [C#] public FileSystemWatcher( string path, string filter ); [C++] public: FileSystemWatcher( String* path, String* filter ); [JScript] public function FileSystemWatcher( path : String, filter : String );
The component can be used to watch files on your personal computer, a network drive, or a remote machine.
Note You cannot watch a remote computer that does not have Windows NT or Windows 2000. You cannot watch a remote Windows NT 4.0 computer from a Windows NT 4.0 computer.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher Constructor Overload List | ChangedFilters | FileSystemEventArgs | FileSystemEventHandler | Filter | InternalBufferOverflowException | Path | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes | WatcherTarget