HostFileChangeMonitor Constructor
Initializes a new instance of the HostFileChangeMonitor class.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException |
filePaths is null. |
| ArgumentException |
filePaths contains zero items. -or- A path in the filePaths list is null or an empty string. |
Calls to the HostFileChangeMonitor constructor must provide a non-null value for the filePaths parameter. At a minimum, the constructor validates the collection of paths that is passed into it and then initializes monitoring for those paths.
Note
|
|---|
|
The constructor performs only string validation of the path name. It does not canonicalize paths or validate that the paths exist. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note