This topic has not yet been rated - Rate this topic

HostFileChangeMonitor Constructor

Initializes a new instance of the HostFileChangeMonitor class.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)
public HostFileChangeMonitor(
	IList<string> filePaths
)

Parameters

filePaths
Type: System.Collections.Generic.IList<String>
A list that contains one or more directory paths or file paths to monitor.
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 Note

The constructor performs only string validation of the path name. It does not canonicalize paths or validate that the paths exist.

.NET Framework

Supported in: 4

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ