次の方法で共有


DetectingChanges イベント

変更の検出パスのとき、ディレクトリが分析される直前に発生します。

名前空間:  Microsoft.Synchronization.Files
アセンブリ:  Microsoft.Synchronization.Files (Microsoft.Synchronization.Files.dll 内)

構文

'宣言
Public Event DetectingChanges As EventHandler(Of DetectingChangesEventArgs)
'使用
Dim instance As FileSyncProvider
Dim handler As EventHandler(Of DetectingChangesEventArgs)

AddHandler instance.DetectingChanges, handler
public event EventHandler<DetectingChangesEventArgs> DetectingChanges
public:
 event EventHandler<DetectingChangesEventArgs^>^ DetectingChanges {
    void add (EventHandler<DetectingChangesEventArgs^>^ value);
    void remove (EventHandler<DetectingChangesEventArgs^>^ value);
}
member DetectingChanges : IEvent<EventHandler<DetectingChangesEventArgs>,
    DetectingChangesEventArgs>

説明

このイベントは、変更の検出パスの間、ルート ディレクトリを含む各ディレクトリについて 1 回発生します。イベントは、フォルダーで変更の検出が開始される前に発生します。

DetectingChangesEventArgs クラスは、分析直前のディレクトリへのパスを提供します。

参照

参照

FileSyncProviderクラス

FileSyncProvider メンバー

Microsoft.Synchronization.Files 名前空間