Click or drag to resize

SafeFileWatcher(String, String) Constructor

Initializes a new instance of the SafeFileWatcher class, given the specified directory and type of files to monitor.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public SafeFileWatcher(
	string path,
	string filter
)
View Source

Parameters

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.
Exceptions
ExceptionCondition
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