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!

FileSystemWatcher Constructor (String, String)

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
);

Parameters

path
The directory to monitor, in standard or UNC notation.
filter
The type of files to watch for. For example, "*.txt" watches for changes to all text files.

Remarks

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.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher Constructor Overload List | ChangedFilters | FileSystemEventArgs | FileSystemEventHandler | Filter | InternalBufferOverflowException | Path | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes | WatcherTarget