HostFileChangeMonitor Constructor (IList<String^>^)

.NET Framework (current version)
 

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.

System_CAPS_noteNote

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

.NET Framework
Available since 4.0
Return to top
Show: