This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
FileSystemWatcher Methods
The methods of the FileSystemWatcher class are listed below. For a complete list of FileSystemWatcher class members, see the FileSystemWatcher Members topic.
Public:
BeginInit |
Notifies the object that initialization is beginning and tells it to standby. |
Dispose |
Disposes of the resources (other than memory) used by the FileSystemWatcher. |
EndInit |
Notifies the object that initialization is complete. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Start |
Starts monitoring the specified directory. |
Stop |
Stops monitoring the specified directory. |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
WaitForChanged |
Overloaded. A synchronous method that returns a structure for the specified type of change that you wish to monitor. |
Protected:
Finalize (inherited from Component) |
[To be supplied.] |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
OnChanged |
Raises the System.IO.FileSystemWatcher.Changed event. |
OnCreated |
Raises the System.IO.FileSystemWatcher.Created event. |
OnDeleted |
Raises the System.IO.FileSystemWatcher.Deleted event. |
OnError |
Raises the System.IO.FileSystemWatcher.Error event. |
OnRenamed |
Raises the System.IO.FileSystemWatcher.Renamed event. |
Event Hookup:
See Also
FileSystemWatcher Class | System.IO Namespace