C# Class Microsoft.VisualStudio.Project.FileChangeManager

This object is in charge of reloading nodes that have file monikers that can be listened to changes
Inheritance: IVsFileChangeEvents
Afficher le fichier Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes resources.

FileChangeManager ( System.IServiceProvider serviceProvider ) : System

Overloaded ctor.

IgnoreItemChanges ( string fileName, bool ignore ) : void

Ignore item file changes for the specified item.

ObserveItem ( string fileName ) : void

Observe when the given file is updated on disk. In this case we do not care about the item id that represents the file in the hierarchy.

ObserveItem ( string fileName, uint id ) : void

Observe when the given file is updated on disk.

StopObservingItem ( string fileName ) : void

Stop observing when the file is updated on disk.

Méthodes protégées

Méthode Description
OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void

Private Methods

Méthode Description
IVsFileChangeEvents ( string directory ) : int

Notifies clients of changes made to a directory.

IVsFileChangeEvents ( uint numberOfFilesChanged, string filesChanged, uint flags ) : int

Called when one of the file have changed on disk.

Method Details

Dispose() public méthode

Disposes resources.
public Dispose ( ) : void
Résultat void

FileChangeManager() public méthode

Overloaded ctor.
public FileChangeManager ( System.IServiceProvider serviceProvider ) : System
serviceProvider System.IServiceProvider
Résultat System

IgnoreItemChanges() public méthode

Ignore item file changes for the specified item.
public IgnoreItemChanges ( string fileName, bool ignore ) : void
fileName string File to ignore observing.
ignore bool Flag indicating whether or not to ignore changes (1 to ignore, 0 to stop ignoring).
Résultat void

ObserveItem() public méthode

Observe when the given file is updated on disk. In this case we do not care about the item id that represents the file in the hierarchy.
public ObserveItem ( string fileName ) : void
fileName string File to observe.
Résultat void

ObserveItem() public méthode

Observe when the given file is updated on disk.
public ObserveItem ( string fileName, uint id ) : void
fileName string File to observe.
id uint The item id of the item to observe.
Résultat void

OnFileChangedOnDisk() protected méthode

protected OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void
e FileChangedOnDiskEventArgs
Résultat void

StopObservingItem() public méthode

Stop observing when the file is updated on disk.
public StopObservingItem ( string fileName ) : void
fileName string File to stop observing.
Résultat void