C# Класс NLog.Internal.MultiFileWatcher

Watches multiple files at the same time and raises an event whenever a single change is detected in any of those files.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MultiFileWatcher ( ) : System
MultiFileWatcher ( NotifyFilters notifyFilters ) : System
StopWatching ( ) : void

Stops watching all files.

StopWatching ( string fileName ) : void

Stops watching the specified file.

Watch ( IEnumerable fileNames ) : void

Watches the specified files for changes.

Защищенные методы

Метод Описание
OnFileChanged ( FileSystemEventArgs e ) : void

Приватные методы

Метод Описание
StopWatching ( FileSystemWatcher watcher ) : void
Watch ( string fileName ) : void

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

MultiFileWatcher() публичный Метод

public MultiFileWatcher ( ) : System
Результат System

MultiFileWatcher() публичный Метод

public MultiFileWatcher ( NotifyFilters notifyFilters ) : System
notifyFilters NotifyFilters
Результат System

OnFileChanged() защищенный Метод

protected OnFileChanged ( FileSystemEventArgs e ) : void
e System.IO.FileSystemEventArgs
Результат void

StopWatching() публичный Метод

Stops watching all files.
public StopWatching ( ) : void
Результат void

StopWatching() публичный Метод

Stops watching the specified file.
public StopWatching ( string fileName ) : void
fileName string
Результат void

Watch() публичный Метод

Watches the specified files for changes.
public Watch ( IEnumerable fileNames ) : void
fileNames IEnumerable The file names.
Результат void