[This is preliminary documentation and is subject to change.]

The SyncFSWatcher type exposes the following members.

Constructors

  NameDescription
Public methodSyncFSWatcher()()()()
Initializes a new instance of the SyncFSWatcher class.
Public methodSyncFSWatcher(String)
Initializes a new instance of the SyncFSWatcher class, given the specified directory to monitor.
Public methodSyncFSWatcher(String, String)
Initializes a new instance of the SyncFSWatcher class, given the specified directory and type of files to monitor.

Methods

  NameDescription
Public methodBeginInit
Begins the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time.
(Inherited from FileSystemWatcher.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the FileSystemWatcher and optionally releases the managed resources.
(Inherited from FileSystemWatcher.)
Public methodEndInit
Ends the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time.
(Inherited from FileSystemWatcher.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnCreated
Raises the Created event.
(Inherited from FileSystemWatcher.)
Protected methodOnCreatedAsync
Asynchronous method calls synchronous method method OnCreatedSync(FileSystemEventArgs)
Protected methodOnCreatedSync
Raises the CreatedSync event
Protected methodOnDeleted
Raises the Deleted event.
(Inherited from FileSystemWatcher.)
Protected methodOnDeletedAsync
Asynchronous method calls synchronous method method OnDeletedSync(FileSystemEventArgs)
Protected methodOnDeletedSync
Raises the DeletedSync event
Protected methodOnError
Raises the Error event.
(Inherited from FileSystemWatcher.)
Protected methodOnChanged
Raises the Changed event.
(Inherited from FileSystemWatcher.)
Protected methodOnChangedAsync
Asynchronous method calls synchronous method method OnChangedSync(FileSystemEventArgs)
Protected methodOnChangedSync
Raises the ChangedSync event
Protected methodOnRenamed
Raises the Renamed event.
(Inherited from FileSystemWatcher.)
Protected methodOnRenamedAsync
Asynchronous method calls synchronous method method OnRenamedSync(RenamedEventArgs)
Protected methodOnRenamedSync
Raises the RenamedSync event
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Public methodWaitForChanged(WatcherChangeTypes)
A synchronous method that returns a structure that contains specific information on the change that occurred, given the type of change you want to monitor.
(Inherited from FileSystemWatcher.)
Public methodWaitForChanged(WatcherChangeTypes, Int32)
A synchronous method that returns a structure that contains specific information on the change that occurred, given the type of change you want to monitor and the time (in milliseconds) to wait before timing out.
(Inherited from FileSystemWatcher.)

Properties

  NameDescription
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Public propertyEnableRaisingEvents
Gets or sets a value indicating whether the component is enabled.
(Inherited from FileSystemWatcher.)
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyFilter
Gets or sets the filter string used to determine what files are monitored in a directory.
(Inherited from FileSystemWatcher.)
Public propertyIncludeSubdirectories
Gets or sets a value indicating whether subdirectories within the specified path should be monitored.
(Inherited from FileSystemWatcher.)
Public propertyInternalBufferSize
Gets or sets the size of the internal buffer.
(Inherited from FileSystemWatcher.)
Public propertyNotifyFilter
Gets or sets the type of changes to watch for.
(Inherited from FileSystemWatcher.)
Public propertyPath
Gets or sets the path of the directory to watch.
(Inherited from FileSystemWatcher.)
Public propertySite
Gets or sets an ISite for the FileSystemWatcher.
(Inherited from FileSystemWatcher.)
Public propertySynchronizingObject
Gets or sets the object used to marshal the event handler calls issued as a result of a directory change.
(Inherited from FileSystemWatcher.)

Events

  NameDescription
Public eventCreated
Occurs when a file or directory in the specified Path is created.
(Inherited from FileSystemWatcher.)
Public eventCreatedSync
Occurs when a file or directory in the specified Path is created
Public eventDeleted
Occurs when a file or directory in the specified Path is deleted.
(Inherited from FileSystemWatcher.)
Public eventDeletedSync
Occurs when a file or directory in the specified Path is deleted.
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.)
Public eventError
Occurs when the internal buffer overflows.
(Inherited from FileSystemWatcher.)
Public eventChanged
Occurs when a file or directory in the specified Path is changed.
(Inherited from FileSystemWatcher.)
Public eventChangedSync
Occurs when a file or directory in the specified Path is changed
Public eventRenamed
Occurs when a file or directory in the specified Path is renamed.
(Inherited from FileSystemWatcher.)
Public eventRenamedSync
Occurs when a file or directory in the specified Path is renamed.

See Also