C# 클래스 System.IO.FileSystemWatcher

상속: Component, ISupportInitialize
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
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