This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
FileSystemWatcher Members
Public:
Constructor
Properties
ChangedFilter |
Gets or sets the type of changes to watch for. |
Enabled |
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 internal buffer size. |
Path |
Gets or sets the path string of the directory to watch. |
Site (inherited from Component) |
Gets or sets the site of the Component. |
SynchronizingObject |
Gets or sets the object used to marshal the event handler calls issued as a result of a directory change. |
Target |
Gets or sets a value indicating whether to watch files, directories, or files and directories within the given path. |
Methods
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. |
Events
Changed |
Occurs when a file or directory is changed. |
Created |
Occurs when a file or directory is created. |
Deleted |
Occurs when a file or directory is deleted. |
Error |
Occurs when an error is raised. |
Renamed |
Occurs when a file or directory is renamed. |
Protected:
Methods
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:
Methods
See Also
FileSystemWatcher Class | System.IO Namespace