FileSystemWatcher Members
.NET Framework 3.0
Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.
The following tables list the members exposed by the FileSystemWatcher type.
| Name | Description | |
|---|---|---|
| FileSystemWatcher | Overloaded. Initializes a new instance of the FileSystemWatcher class. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Container | Gets the IContainer that contains the Component.(inherited from Component) |
| EnableRaisingEvents | Gets or sets a value indicating whether the component is enabled. |
| Filter | Gets or sets the filter string used to determine what files are monitored in a directory. |
| IncludeSubdirectories | Gets or sets a value indicating whether subdirectories within the specified path should be monitored. |
| InternalBufferSize | Gets or sets the size of the internal buffer. |
| NotifyFilter | Gets or sets the type of changes to watch for. |
| Path | Gets or sets the path of the directory to watch. |
| Site | Overridden. Gets or sets an ISite for the FileSystemWatcher. |
| SynchronizingObject | Gets or sets the object used to marshal the event handler calls issued as a result of a directory change. |
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event.(inherited from Component) |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode.(inherited from Component) |
| Events | Gets the list of event handlers that are attached to this Component.(inherited from Component) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| BeginInit | Begins the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject) |
| Dispose | Overloaded. Releases the resources used by the FileSystemWatcher. |
| EndInit | Ends the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (inherited from Component) |
| WaitForChanged | Overloaded. A synchronous method that returns a structure that contains specific information on the change that occurred. |
| Name | Description | |
|---|---|---|
| Dispose | Overloaded. Overridden. Releases the resources used by the FileSystemWatcher. |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component) |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (inherited from Component) |
| MemberwiseClone | Overloaded. (inherited from MarshalByRefObject) |
| OnChanged | Raises the Changed event. |
| OnCreated | Raises the Created event. |
| OnDeleted | Raises the Deleted event. |
| OnError | Raises the Error event. |
| OnRenamed | Raises the Renamed event. |
| Name | Description | |
|---|---|---|
| Changed | Occurs when a file or directory in the specified Path is changed. |
| Created | Occurs when a file or directory in the specified Path is created. |
| Deleted | Occurs when a file or directory in the specified Path is deleted. |
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (inherited from Component) |
| Error | Occurs when the internal buffer overflows. |
| Renamed | Occurs when a file or directory in the specified Path is renamed. |