System.IO.FileSystemWatcher.RunningInstance.RemoveWatchedDirectory C# (CSharp) Méthode

RemoveWatchedDirectory() private méthode

Removes the watched directory from our state, and optionally removes the inotify watch itself.
private RemoveWatchedDirectory ( WatchedDirectory directoryEntry, bool removeInotify = true ) : void
directoryEntry WatchedDirectory The directory entry to remove.
removeInotify bool true to remove the inotify watch; otherwise, false. The default is true.
Résultat void
            private void RemoveWatchedDirectory(WatchedDirectory directoryEntry, bool removeInotify = true)
            {
                Debug.Assert (_includeSubdirectories);
                lock (SyncObj)
                {
                    if (directoryEntry.Parent != null)
                    {
                        directoryEntry.Parent.Children.Remove (directoryEntry);
                    }
                    RemoveWatchedDirectoryUnlocked (directoryEntry, removeInotify);
                }
            }