次の方法で共有


IFileChangeNotificationSystem インターフェイス

定義

カスタム 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)

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

適用対象