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
Exibir arquivo Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void

Private Methods

Method 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 method

Disposes resources.
public Dispose ( ) : void
return void

FileChangeManager() public method

Overloaded ctor.
public FileChangeManager ( System.IServiceProvider serviceProvider ) : System
serviceProvider System.IServiceProvider
return System

IgnoreItemChanges() public method

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).
return void

ObserveItem() public method

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.
return void

ObserveItem() public method

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.
return void

OnFileChangedOnDisk() protected method

protected OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void
e FileChangedOnDiskEventArgs
return void

StopObservingItem() public method

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