HostFileChangeMonitor(IList<String>) Konstruktor

Definice

Inicializuje novou instanci HostFileChangeMonitor třídy.

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

Parametry

filePaths
IList<String>

Seznam obsahující jednu nebo více cest k adresáři nebo cesty k souborům, které chcete monitorovat.

Výjimky

filePaths je null.

filePaths obsahuje nula položek.

nebo

Cesta v filePaths seznamu je null nebo prázdný řetězec.

Poznámky

Volání konstruktoru HostFileChangeMonitor musí pro parametr zadat hodnotu filePaths , která není null. Konstruktor minimálně ověří kolekci cest, které se do ní předají, a pak inicializuje monitorování těchto cest.

Note

Konstruktor provádí pouze ověření řetězce názvu cesty. Neověře cesty kanonicky ani neověřuje, že cesty existují.

Platí pro