C# Class System.IO.FileSystemWatcher

Inheritance: Component, ISupportInitialize
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnChanged ( System e ) : void
OnCreated ( System e ) : void
OnDeleted ( System e ) : void
OnError ( System e ) : void
OnRenamed ( System e ) : void

Private Methods

Méthode Description
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.

Method Details

BeginInit() public méthode

public BeginInit ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndInit() public méthode

public EndInit ( ) : void
Résultat void

FileSystemWatcher() public méthode

public FileSystemWatcher ( )

FileSystemWatcher() public méthode

public FileSystemWatcher ( string path )
path string

FileSystemWatcher() public méthode

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

FileSystemWatcher() public méthode

public FileSystemWatcher ( string path ) : System.ComponentModel
path string
Résultat System.ComponentModel

FileSystemWatcher() public méthode

public FileSystemWatcher ( string path, string filter ) : System.ComponentModel
path string
filter string
Résultat System.ComponentModel

OnChanged() protected méthode

protected OnChanged ( System e ) : void
e System
Résultat void

OnCreated() protected méthode

protected OnCreated ( System e ) : void
e System
Résultat void

OnDeleted() protected méthode

protected OnDeleted ( System e ) : void
e System
Résultat void

OnError() protected méthode

protected OnError ( System e ) : void
e System
Résultat void

OnRenamed() protected méthode

protected OnRenamed ( System e ) : void
e System
Résultat void

WaitForChanged() public méthode

public WaitForChanged ( System changeType ) : System.IO.WaitForChangedResult
changeType System
Résultat System.IO.WaitForChangedResult

WaitForChanged() public méthode

public WaitForChanged ( System changeType, int timeout ) : System.IO.WaitForChangedResult
changeType System
timeout int
Résultat System.IO.WaitForChangedResult

WaitForChanged() public méthode

public WaitForChanged ( WatcherChangeTypes changeType ) : WaitForChangedResult
changeType WatcherChangeTypes
Résultat WaitForChangedResult

WaitForChanged() public méthode

public WaitForChanged ( WatcherChangeTypes changeType, int timeout ) : WaitForChangedResult
changeType WatcherChangeTypes
timeout int
Résultat WaitForChangedResult