.NET Framework Class Library
FileSystemWatcher Members

Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.

The FileSystemWatcher type exposes the following members.

Constructors

  NameDescription
Public methodFileSystemWatcherOverloaded. Initializes a new instance of the FileSystemWatcher class.
Top
Methods

  NameDescription
Public methodBeginInitBegins the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDisposeOverloaded. Releases the resources used by the FileSystemWatcher.
Public methodEndInitEnds the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseCloneOverloaded.
Protected methodOnChangedRaises the Changed event.
Protected methodOnCreatedRaises the Created event.
Protected methodOnDeletedRaises the Deleted event.
Protected methodOnErrorRaises the Error event.
Protected methodOnRenamedRaises the Renamed event.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public methodWaitForChangedOverloaded. A synchronous method that returns a structure that contains specific information on the change that occurred.
Top
Properties

  NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertyEnableRaisingEventsGets or sets a value indicating whether the component is enabled.
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyFilterGets or sets the filter string used to determine what files are monitored in a directory.
Public propertyIncludeSubdirectoriesGets or sets a value indicating whether subdirectories within the specified path should be monitored.
Public propertyInternalBufferSizeGets or sets the size of the internal buffer.
Public propertyNotifyFilterGets or sets the type of changes to watch for.
Public propertyPathGets or sets the path of the directory to watch.
Public propertySiteGets or sets an ISite for the FileSystemWatcher. (Overrides Component..::.Site.)
Public propertySynchronizingObjectGets or sets the object used to marshal the event handler calls issued as a result of a directory change.
Top
Events

  NameDescription
Public eventChangedOccurs when a file or directory in the specified Path is changed.
Public eventCreatedOccurs when a file or directory in the specified Path is created.
Public eventDeletedOccurs when a file or directory in the specified Path is deleted.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventErrorOccurs when the internal buffer overflows.
Public eventRenamedOccurs when a file or directory in the specified Path is renamed.
Top
See Also

Reference

Tags :


Page view tracker