C# Класс Microsoft.VisualStudio.Project.FileChangeManager

This object is in charge of reloading nodes that have file monikers that can be listened to changes
Наследование: IVsFileChangeEvents
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void

Приватные методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

Disposes resources.
public Dispose ( ) : void
Результат void

FileChangeManager() публичный Метод

Overloaded ctor.
public FileChangeManager ( System.IServiceProvider serviceProvider ) : System
serviceProvider System.IServiceProvider
Результат System

IgnoreItemChanges() публичный Метод

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).
Результат void

ObserveItem() публичный Метод

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.
Результат void

ObserveItem() публичный Метод

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.
Результат void

OnFileChangedOnDisk() защищенный Метод

protected OnFileChangedOnDisk ( FileChangedOnDiskEventArgs e ) : void
e FileChangedOnDiskEventArgs
Результат void

StopObservingItem() публичный Метод

Stop observing when the file is updated on disk.
public StopObservingItem ( string fileName ) : void
fileName string File to stop observing.
Результат void