FTPFileSystemWatcher Class |
Namespace: EnterpriseDT.Net.Ftp
The FTPFileSystemWatcher type exposes the following members.
| Name | Description | |
|---|---|---|
| FTPFileSystemWatcher |
Default consructor.
|
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) | |
| Connection |
Get or set the FTP connection object for which status information is
being displayed.
| |
| Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
| DelayPeriodSecs |
Number of seconds to wait after a connection is established or the current directory
is changed before requesting a directory listing.
| |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) | |
| DirectoryPollingEnabled |
Determines whether or not the server directory should be fetched periodically.
| |
| EnableRaisingEvents |
Enables generation of events.
| |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
| PollingPeriodSecs |
Number of seconds between consecutive directory listings.
| |
| Site | (Inherited from Component.) |
| Name | Description | |
|---|---|---|
| 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 | Releases all resources used by the Component. (Inherited from Component.) | |
| Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetService | (Inherited from Component.) | |
| 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.) | |
| LinkComponent | ||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| OnChanged | ||
| OnCreated |
Called when a file is created in the current remote directory.
| |
| OnDeleted | ||
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Name | Description | |
|---|---|---|
| Changed |
Notifies that the size and/or last-modified time of a file in the current remote
directory has changed.
| |
| Created |
Notifies that a file has been created in the current remote directory.
| |
| Deleted |
Notifies that a file has been deleted in the current remote directory.
| |
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |
FTPFileSystemWatcher listens to FTPConnection events and (optionally) polls the FTP server every [!:RefreshPeriodSecs] to detect changes.
Three events are provided for notification of changes on the remote file: