IFileChangeNotificationSystem インターフェイス

定義

カスタム FileChangeMonitor オブジェクトをキャッシュ実装に公開する方法を定義します。

public interface class IFileChangeNotificationSystem
public interface IFileChangeNotificationSystem
type IFileChangeNotificationSystem = interface
Public Interface IFileChangeNotificationSystem

注釈

この ASP.NET インターフェイス IFileChangeNotificationSystem は、内部ファイル変更通知管理へのアクセスを提供します。

インターフェイス IFileChangeNotificationSystem は、 クラスによって内部的に使用 HostFileChangeMonitor されます。

キャッシュの実装がアプリケーション ドメイン内で実行 ASP.NET、ASP.NET を介 IFileChangeNotificationSystem してインターフェイスが実装 Host されます。 クラスは、このプロパティを検出し、ASP.NET 変更通知システムを使用して、ファイル変更通知に基づいてキャッシュ エントリ HostFileChangeMonitor を削除します。

非ホスト アプリケーション ASP.NET、カスタム インターフェイスを実装するホスト環境 IFileChangeNotificationSystem はありません。 その結果、 クラス HostFileChangeMonitor は CLR の FileSystemWatcher クラスを使用します。

メソッド

StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64)

監視するファイル パスをホスト環境に登録します。

StopMonitoring(String, Object)

変更の監視を終了します。

適用対象