Click or drag to resize

ShellChangeNotifier Class

Use this component to get information about changes in the file system (copy, move or delete operations) and other changes relevant for shell operations.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      Jam.ShellShellChangeNotifier

Namespace: Jam.Shell
Assembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntax
public class ShellChangeNotifier : Component, 
	IShellChangeNotifier, ISupportInitialize

The ShellChangeNotifier type exposes the following members.

Constructors
 NameDescription
Public methodShellChangeNotifier Initializes a new instance of the ShellChangeNotifier class.
Top
Properties
 NameDescription
Public propertyDirectories The directories to receive change notifications for. Leave empty to receive change notifications for the whole file system.
Public propertyEnabled Set to true to enable listening to change notifications.
Public propertyEventFilter Allows to define which shell change events should be reported.
Public propertyRecursive Set to true, if change notifications for subfolders are desired as well.
Public propertyVersion The current version of the ShellBrowser.
Public propertyWatchDrivesDetermines if "This PC" shall be watched recursively if no other directories are given.
Top
Methods
 NameDescription
Public methodAddItemIdList(ItemIdList)Subscribes for notifications in the passed folder using current settings for Recursive and EventFilter.
Public methodAddItemIdList(ItemIdList, Boolean, NotificationEvents)Subscribes for notifications in the passed folder using the passed settings.
Public methodBeginInitSignals the object that initialization is starting.
Public methodBeginUpdateBegins an update of a ShellChangeNotifier configuration.
Public methodClear Removes all directories from the Directories property and so watches the entire file system again.
Protected methodDispose Remove reference to the ChangeNotifierCallBackForm
(Overrides ComponentDispose(Boolean))
Public methodEndInitSignals the object that initialization is complete.
Public methodEndUpdateEnds an update.
Public methodIsUpdatingGets a value indicating if BeginUpdate has been called without a matching EndUpdate.
Public methodOnChange Fires the OnChange event, when something happened in the monitored directories.
Public methodOnChangePIDL Fires the OnChange event, when something happened in the monitored directories.
Public methodRemoveItemIdListUnregisters the folder given.
Public methodRestart Restarts the change notifier if it is already started
Public methodStatic memberSendChangeNotify(NotificationEvents, String) Sends a shell change notification to the system that informs other processes about a achange.
Public methodStatic memberSendChangeNotify(NotificationEvents, String, String) Sends a shell change notification to the system that informs other processes about a achange.
Protected methodStart Starts monitoring the paths in the Directories property
Protected methodStop Stops monitoring the paths in the Directories property
Top
Events
 NameDescription
Public eventChange This event is fired when a change event was fired from the system for one of the monitored paths in the Directories property.
Public eventChangePIDL This event is fired when a change event for the given ItemIdList list of the given paths in the Directories property occured.
Top
Remarks
Use the Directories property to decide which parts of the shell namespace will be watched for changes, or add ItemIdLists via AddItemIdList(ItemIdList).
See Also