Edit

Share via


HostFileChangeMonitor(IList<String>) Constructor

Definition

Initializes a new instance of the HostFileChangeMonitor class.

public:
 HostFileChangeMonitor(System::Collections::Generic::IList<System::String ^> ^ filePaths);
public HostFileChangeMonitor (System.Collections.Generic.IList<string> filePaths);
new System.Runtime.Caching.HostFileChangeMonitor : System.Collections.Generic.IList<string> -> System.Runtime.Caching.HostFileChangeMonitor
Public Sub New (filePaths As IList(Of String))

Parameters

filePaths
IList<String>

A list that contains one or more directory paths or file paths to monitor.

Exceptions

filePaths is null.

filePaths contains zero items.

-or-

A path in the filePaths list is null or an empty string.

Remarks

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.

Applies to