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)

Initializes a new instance of the FileSystemWatcher class, given the specified directory to monitor.

[Visual Basic]
Overloads Public Sub New( _
   ByVal path As String _
)
[C#]
public FileSystemWatcher(
   string path
);
[C++]
public: FileSystemWatcher(
   String* path
);
[JScript]
public function FileSystemWatcher(
   path : String
);

Parameters

path
The directory to monitor, in standard or UNC notation.

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. The Filter property is set by default to watch all files.

See Also

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