|
SafeFileWatcher(String, String) Constructor
|
Initializes a new instance of the
SafeFileWatcher class, given the specified directory and type of files to monitor.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic SafeFileWatcher(
string path,
string filter
)
Public Sub New (
path As String,
filter As String
)
public:
SafeFileWatcher(
String^ path,
String^ filter
)
new :
path : string *
filter : string -> SafeFileWatcher
GSF.IO.SafeFileWatcher = function(path, filter);
View SourceParameters
- path String
- The directory to monitor, in standard or Universal Naming Convention (UNC) notation.
- filter String
- The type of files to watch. For example, "*.txt" watches for changes to all text files.
ExceptionsException | Condition |
---|
ArgumentNullException |
The path parameter is null. -or-
The filter parameter is null.
|
ArgumentException |
The path parameter is an empty string (""). -or-
The path specified through the path parameter does not exist.
|
See Also