IFileChangeNotificationSystem インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
カスタム FileChangeMonitor オブジェクトをキャッシュ実装に公開する方法を定義します。
public interface class IFileChangeNotificationSystem
public interface IFileChangeNotificationSystem
type IFileChangeNotificationSystem = interface
Public Interface IFileChangeNotificationSystem
注釈
ASP.NET では、 IFileChangeNotificationSystem インターフェイスは、内部ファイル変更通知管理へのアクセスを提供します。
IFileChangeNotificationSystem インターフェイスは、HostFileChangeMonitor クラスによって内部的に使用されます。
キャッシュ実装が ASP.NET アプリケーション ドメインで実行される場合、ASP.NET は Host プロパティを介してIFileChangeNotificationSystem インターフェイスを実装します。 HostFileChangeMonitor クラスは、このプロパティを検出し、ASP.NET ファイル変更通知システムを使用して、ファイル変更通知に基づいてキャッシュ エントリを削除します。
non-ASP.NET アプリケーションでは、カスタム IFileChangeNotificationSystem インターフェイスを実装するホスト環境はありません。 その結果、 HostFileChangeMonitor クラスは CLR の FileSystemWatcher クラスを使用します。
メソッド
| 名前 | 説明 |
|---|---|
| StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64) |
ホスト環境で監視するファイル パスを登録します。 |
| StopMonitoring(String, Object) |
変更の監視を終了します。 |