Share via


ThreadSafeFileWatcher Members

Include Protected Members
Include Inherited Members

Used when monitoring the file system.

The ThreadSafeFileWatcher type exposes the following members.

Constructors

  Name Description
Public method ThreadSafeFileWatcher Initializes a new instance of the ThreadSafeFileWatcher class.

Top

Methods

  Name Description
Public method BeginInit 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 method 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.)
Public method Disable Turns off file listening.
Public method Dispose Overloaded. Releases the resources used by the FileSystemWatcher.
Public method Enable Turns on file listening.
Public method EndInit Ends the initialization of a FileSystemWatcher used on a form or used by another component. The initialization occurs at run time. (Inherited from FileSystemWatcher.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
Protected method OnChanged Raises the Changed event. (Inherited from FileSystemWatcher.)
Protected method OnCreated Raises the Created event. (Inherited from FileSystemWatcher.)
Protected method OnDeleted Raises the Deleted event. (Inherited from FileSystemWatcher.)
Protected method OnError Raises the Error event. (Inherited from FileSystemWatcher.)
Protected method OnRenamed Raises the Renamed event. (Inherited from FileSystemWatcher.)
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method WaitForChanged Overloaded. A synchronous method that returns a structure that contains specific information on the change that occurred.

Top

Properties

  Name Description
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property EnableRaisingEvents Gets or sets a value indicating whether the component is enabled. (Inherited from FileSystemWatcher.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Filter Gets or sets the filter string used to determine what files are monitored in a directory. (Inherited from FileSystemWatcher.)
Public property IncludeSubdirectories Gets or sets a value indicating whether subdirectories within the specified path should be monitored. (Inherited from FileSystemWatcher.)
Public property InternalBufferSize Gets or sets the size of the internal buffer. (Inherited from FileSystemWatcher.)
Public property NotifyFilter Gets or sets the type of changes to watch for. (Inherited from FileSystemWatcher.)
Public property Path Gets or sets the path of the directory to watch. (Inherited from FileSystemWatcher.)
Public property Site Gets or sets an ISite for the FileSystemWatcher. (Inherited from FileSystemWatcher.)
Public property SynchronizingObject Gets or sets the object used to marshal the event handler calls issued as a result of a directory change. (Inherited from FileSystemWatcher.)

Top

Events

  Name Description
Public event Changed Occurs when a file or directory in the specified Path is changed. (Inherited from FileSystemWatcher.)
Public event ChangedThreadSafe Event raised when a file under the project folder has changed.
Public event Created Occurs when a file or directory in the specified Path is created. (Inherited from FileSystemWatcher.)
Public event CreatedThreadSafe Event raised when a file under the project folder has been created.
Public event Deleted Occurs when a file or directory in the specified Path is deleted. (Inherited from FileSystemWatcher.)
Public event DeletedThreadSafe Event raised when a file under the project folder has been deleted.
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public event Error Occurs when the internal buffer overflows. (Inherited from FileSystemWatcher.)
Public event Renamed Occurs when a file or directory in the specified Path is renamed. (Inherited from FileSystemWatcher.)
Public event RenamedThreadSafe Event raised when a file under the project folder has been renamed.

Top

See Also

Reference

ThreadSafeFileWatcher Class

Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities Namespace