C# Класс System.IO.FileSystemWatcher

Наследование: Component, ISupportInitialize
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BeginInit ( ) : void
EndInit ( ) : void
FileSystemWatcher ( )
FileSystemWatcher ( string path )
FileSystemWatcher ( string path, string filter )
FileSystemWatcher ( string path ) : System.ComponentModel
FileSystemWatcher ( string path, string filter ) : System.ComponentModel
WaitForChanged ( System changeType ) : System.IO.WaitForChangedResult
WaitForChanged ( System changeType, int timeout ) : System.IO.WaitForChangedResult
WaitForChanged ( WatcherChangeTypes changeType ) : WaitForChangedResult
WaitForChanged ( WatcherChangeTypes changeType, int timeout ) : WaitForChangedResult

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

Метод Описание
Dispose ( bool disposing ) : void
OnChanged ( System e ) : void
OnCreated ( System e ) : void
OnDeleted ( System e ) : void
OnError ( System e ) : void
OnRenamed ( System e ) : void

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

Метод Описание
AllocateBuffer ( ) : byte[]

Allocates a buffer of the requested internal buffer size.

FileSystemWatcher ( ) : System.ComponentModel
InvokeOn ( FileSystemEventArgs e, FileSystemEventHandler handler ) : void
IsHandleInvalid ( System.IO.SafeFileHandle handle ) : bool
IsSuspended ( ) : bool
MatchPattern ( string relativePath ) : bool
Monitor ( AsyncReadState state ) : void

Initiates the next asynchronous read operation if monitoring is still desired. If the directory handle has been closed due to an error or due to event monitoring being disabled, this cleans up state associated with the operation.

NotifyFileSystemEventArgs ( WatcherChangeTypes changeType, string name ) : void
NotifyInternalBufferOverflowEvent ( ) : void
NotifyRenameEventArgs ( WatcherChangeTypes action, string name, string oldName ) : void
OnChanged ( FileSystemEventArgs e ) : void
OnCreated ( FileSystemEventArgs e ) : void
OnDeleted ( FileSystemEventArgs e ) : void
OnError ( ErrorEventArgs e ) : void
OnRenamed ( RenamedEventArgs e ) : void
ParseEventBufferAndNotifyForEach ( byte buffer ) : void
ReadDirectoryChangesCallback ( uint errorCode, uint numBytes, NativeOverlapped overlappedPointer ) : void

Callback invoked when an asynchronous read on the directory handle completes.

ReadMaxUserLimit ( string path ) : string

Reads the value of a max user limit path from procfs.

Restart ( ) : void
StartRaisingEventsIfNotDisposed ( ) : void
TranslateFilters ( NotifyFilters filters ) : Interop.Sys.NotifyEvents

Maps the FileSystemWatcher's NotifyFilters enumeration to the corresponding Interop.Sys.NotifyEvents values.

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

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

public BeginInit ( ) : void
Результат void

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

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public EndInit ( ) : void
Результат void

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

public FileSystemWatcher ( )

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

public FileSystemWatcher ( string path )
path string

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

public FileSystemWatcher ( string path, string filter )
path string
filter string

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

public FileSystemWatcher ( string path ) : System.ComponentModel
path string
Результат System.ComponentModel

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

public FileSystemWatcher ( string path, string filter ) : System.ComponentModel
path string
filter string
Результат System.ComponentModel

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

protected OnChanged ( System e ) : void
e System
Результат void

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

protected OnCreated ( System e ) : void
e System
Результат void

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

protected OnDeleted ( System e ) : void
e System
Результат void

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

protected OnError ( System e ) : void
e System
Результат void

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

protected OnRenamed ( System e ) : void
e System
Результат void

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

public WaitForChanged ( System changeType ) : System.IO.WaitForChangedResult
changeType System
Результат System.IO.WaitForChangedResult

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

public WaitForChanged ( System changeType, int timeout ) : System.IO.WaitForChangedResult
changeType System
timeout int
Результат System.IO.WaitForChangedResult

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

public WaitForChanged ( WatcherChangeTypes changeType ) : WaitForChangedResult
changeType WatcherChangeTypes
Результат WaitForChangedResult

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

public WaitForChanged ( WatcherChangeTypes changeType, int timeout ) : WaitForChangedResult
changeType WatcherChangeTypes
timeout int
Результат WaitForChangedResult