語言

HostFileChangeMonitor(IList<String>) 建構函式

定義

初始化 HostFileChangeMonitor 類別的新執行個體。

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))

參數

filePaths
IList<String>

一個包含一個或多個目錄路徑或檔案路徑以供監控的清單。

例外狀況

filePaths 是 null。

filePaths 包含零項目。

-或-

列表中的 filePaths 路徑是 null 或 空字串。

備註

呼叫HostFileChangeMonitor建構子時必須提供非空值。filePaths 至少,建構子會驗證傳送到它的路徑集合,然後對這些路徑初始化監控。

Note

建構子僅對路徑名稱進行字串驗證。 它不會將路徑規範化,也不會驗證路徑的存在。

適用於